home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Standards 1994 January / InfoMagic Standards - January 1994.iso / ccitt / 1988 / troff / 8_2_04.tro < prev    next >
Text File  |  1991-12-22  |  833KB  |  33,264 lines

  1. .rs
  2. .\" Troff code generated by TPS Convert from ITU Original Files
  3. .\"                 Not Copyright (~c) 1991 
  4. .\"
  5. .\" Assumes tbl, eqn, MS macros, and lots of luck.
  6. .TA 1c 2c 3c 4c 5c 6c 7c 8c
  7. .ds CH
  8. .ds CF
  9. .EQ
  10. delim @@
  11. .EN
  12. .nr LL 40.5P
  13. .nr ll 40.5P
  14. .nr HM 3P
  15. .nr FM 6P
  16. .nr PO 4P
  17. .nr PD 9p
  18. .po 4P
  19.  
  20. .rs
  21. \v'|.5i'
  22. .LP
  23. \fBMONTAGE : FIN DE L'ANNEXE A DE LA RECOMMANDATION X.21
  24. EN\(hyT\*\|ETE DE CETTE PAGE\fR 
  25. .sp 2P
  26. .LP
  27. \v'28P'
  28. \fBRecommendation\ X.22\fR 
  29. .RT
  30. .sp 2P
  31. .sp 1P
  32. .ce 1000
  33. \fBMULTIPLEX\ DTE/DCE\ INTERFACE\fR \fB\ FOR\ USER\ CLASSES\ 3\(hy6\fR 
  34. .EF '%    Fascicle\ VIII.2\ \(em\ Rec.\ X.22''
  35. .OF '''Fascicle\ VIII.2\ \(em\ Rec.\ X.22    %'
  36. .ce 0
  37. .sp 1P
  38. .ce 1000
  39. \fIGeneva, 1980, amended at Melbourne, 1988)\fR 
  40. .sp 9p
  41. .RT
  42. .ce 0
  43. .sp 1P
  44. .sp 2P
  45. .LP
  46.     The\ CCITT,
  47. .sp 1P
  48. .RT
  49. .sp 1P
  50. .LP
  51. \fIconsidering\fR 
  52. .sp 9p
  53. .RT
  54. .PP
  55. (a)
  56. that Recommendations X.1 and X.2 define the
  57. services and facilities to be provided by a public data network;
  58. .LP
  59. .PP
  60. (b)
  61. that Recommendation\ X.21 defines the interface between a Data Terminal 
  62. Equipment (DTE) and Data Circuit\(hyterminating Equipment (DCE) for synchronous 
  63. operation on public data networks; 
  64. .PP
  65. (c)
  66. that it is desirable for characteristics of the
  67. interface carrying a multiplexed bit stream between a DTE and a multiplex 
  68. DCE of a public data network to be standardized; 
  69. .sp 1P
  70. .LP
  71. \fIunanimously declares\fR 
  72. .sp 9p
  73. .RT
  74. .PP
  75. that the interface between the DTE and the DCE in a public data
  76. network using a multiplexed channel configuration employing synchronous
  77. transmission should be as defined in this Recommendation.
  78. .bp
  79. .sp 2P
  80. .LP
  81. \fB1\fR     \fBScope\fR 
  82. .sp 1P
  83. .RT
  84. .PP
  85. 1.1
  86. This Recommendation defines the interface between a DTE and a multiplex 
  87. DCE, operating at 48\|000\ bit/s and multiplexing a number of 
  88. Recommendation\ X.21 subscriber channels employing 
  89. synchronous
  90. transmission.
  91. .sp 9p
  92. .RT
  93. .LP
  94. .PP
  95. 1.2
  96. The number of Recommendation X.21 subscriber channels is
  97. limited by the number of subscriber channels allowed in the network multiplex 
  98. structure (see\ \(sc\ 4). 
  99. .PP
  100. 1.3
  101. The provision of all services supported by Recommendation\ X.21
  102. is possible.
  103. .sp 2P
  104. .LP
  105. \fB2\fR     \fBDTE/DCE physical interface elements\fR (see Table 1/X.22)
  106. .sp 1P
  107. .RT
  108. .sp 1P
  109. .LP
  110. 2.1
  111.     \fIElectrical characteristics\fR 
  112. .sp 9p
  113. .RT
  114. .PP
  115. The electrical characteristics of the interchange circuits at both the 
  116. DCE side and the DTE side of the interface will comply with 
  117. Recommendation\ X.27 with implementation of the cable termination in the
  118. load.
  119. .RT
  120. .sp 1P
  121. .LP
  122. 2.2
  123.     \fIMechanical characteristics\fR 
  124. .sp 9p
  125. .RT
  126. .PP
  127. Refer to ISO 4903 (15\(hypole DTE/DCE interface connector and contact number 
  128. assignments) for mechanical arrangements. 
  129. .RT
  130. .sp 1P
  131. .LP
  132. 2.3
  133.     \fIFunctional characteristics of the\fR 
  134. \fIinterchange circuits\fR 
  135. .sp 9p
  136. .RT
  137. .PP
  138. Definitions of the interchange circuits G, T, R, C, I, S and F are given 
  139. in Recommendation\ X.24 and in\ \(sc\ 4 below. 
  140. .RT
  141. .LP
  142. .sp 1
  143. .ce
  144. .line
  145. .ce
  146. \fBTable [1/X.22] [T1.22], p.\fR 
  147. .LP
  148. 2.4
  149. \fICall control and failure detection procedures\fR 
  150. .LP
  151. \fICall control\fR 
  152. \|and \fIfailure detection\fR 
  153.  \|procedures shall operate as specified in Recommendation\ X.21 on each 
  154. subscriber channel independent of other subscriber channels. 
  155. .LP
  156. 2.4.1
  157. \fIQuiescent states\fR 
  158. .LP
  159. The quiescent states shall be in accordance with
  160. Recommendation\ X.21, \(sc\ 2.5.
  161. .LP
  162. 2.4.2
  163. \fIFailure detection\fR 
  164. .LP
  165. See Recommendation\ X.27, \(sc\ 9 for association of the
  166. receiver circuit failure detection types.
  167. .LP
  168. 2.4.2.1
  169. \fIFault conditions on interchange circuits\fR 
  170. .LP
  171. The DTE should interpret a fault condition on circuit\ R as r\ =\ 0 on 
  172. all channels using failure detection type\ 2, a fault condition on circuit\ 
  173. I as i\ =\ OFF on all channels using failure detection type\ 1, and a fault 
  174. condition on both circuits\ R and\ I as r\ =\ 0, i\ =\ OFF \fI(DCE not 
  175. ready)\fR 
  176. on all channels.
  177. .LP
  178. Alternatively a fault condition on one of these circuits,
  179. R or I, may be interpreted by the DTE as r\ =\ 0, i\ =\ OFF
  180. \fI(DCE not ready)\fR 
  181. , using failure detection type\ 3.
  182. .LP
  183. The DCE will interpret a fault condition on circuit\ T as t\ =\ 0
  184. on all channels using failure detection type\ 2, a fault
  185. condition on circuit\ C as c\ =\ OFF on all channels using failure
  186. detection type\ 1, and a fault condition on both circuits\ T
  187. and\ C as t\ =\ 0, c\ =\ OFF on all channels \fI(DTE uncontrolled not\fR 
  188. \fIready)\fR 
  189. .LP
  190. Alternatively, a fault condition on one of these circuits,
  191. T or C, may be interpreted by the DCE as t\ =\ 0, c\ =\ OFF
  192. \fI(DTE uncontrolled not ready)\fR 
  193. , using failure detection
  194. type\ 3.
  195. .LP
  196. 2.4.2.2
  197. \fIDCE fault condition\fR 
  198. .LP
  199. Indication of the DCE failure condition shall be in accordance
  200. with Recommendation\ X.21, \(sc\ 2.6.2.
  201. .LP
  202. A DCE failure condition may effect all subscriber channels
  203. at the DTE/DCE interface.
  204. .LP
  205. 2.4.2.3
  206. \fISignal element timing provision\fR 
  207. .LP
  208. The provision of signal element timing shall be in accordance
  209. with Recommendation\ X.21, \(sc\ 2.6.3.
  210. .LP
  211. 2.4.3
  212. \fIElements of the call control phase\fR 
  213. .LP
  214. The elements of the call control phase, for each channel, shall be in accordance 
  215. with Recommendation\ X.21, \(sc\ 4 with the exception that byte 
  216. timing is not used.
  217. .LP
  218. 2.4.4
  219. \fIData transfer phase\fR 
  220. .LP
  221. The data transfer phase, for each channel, shall be in accordance with 
  222. Recommendation\ X.21, \(sc\ 5. 
  223. .LP
  224. 2.4.5
  225. \fIClearing phase\fR 
  226. .LP
  227. The clearing phase, for each channel, shall be in accordance with Recommendation\ 
  228. X.21, \(sc\ 6. 
  229. .LP
  230. \fB3\fR 
  231. \fBAlignment of call control characters\fR 
  232. \fBand\fR 
  233. \fBerror\fR 
  234. \fBchecking\fR 
  235. .LP
  236. \fB
  237. 3.1
  238. \fICharacter alignment\fR 
  239. .LP
  240. For the interchange of information between the DTE and the DCE for call 
  241. control purposes, it is necessary to establish correct alignment of 
  242. characters. Each sequence of call control characters to and from the DCE 
  243. shall be preceded by two or more contiguous\ 1/6 (\*QSYN\*U) characters. 
  244. .LP
  245. 3.1.1
  246. Certain Administrations will require the DTE to align call
  247. control characters transmitted from the DTE to either SYN characters delivered 
  248. to the DTE or to the signals on the \fIframe start identification\fR 
  249. interchange
  250. circuit\ (F).
  251. .LP
  252. 3.1.2
  253. Certain Administrations will permit call control characters to be transmitted 
  254. from the DTE independently of the SYN characters delivered to 
  255. the DTE.
  256. .LP
  257. 3.2
  258. \fIError checking\fR 
  259. .LP
  260. Odd parity according to Recommendation\ X.4 applies for the
  261. interchange of IA5 characters for call control purposes.
  262. .LP
  263. \fB4\fR 
  264. \fBMultiplex structure\fR 
  265. .LP
  266. Depending on the multiplex structure used by the network, the
  267. structure of the multiplexed bit stream will be one of two different
  268. types.
  269. .LP
  270. 4.1
  271. \fIMultiplex structure in networks providing 6\ bit\(hybytes\fR 
  272. .LP
  273. The DCE shall deliver to and receive from the DTE a 6\(hybit byte
  274. interleaved multiplexed bit stream containing a number of subscriber channels. 
  275. The allocation of the subscriber channels should be: 
  276. .LP
  277. \ 5\ channels\ (phases)\ of\ 9600\ bit/s\ or
  278. 10\ channels\ \ \ \ \ \ \ \ of\ 4800\ bit/s\ or
  279. 20\ channels\ \ \ \ \ \ \ \ of\ 2400\ bit/s\ or
  280. 80\ channels\ \ \ \ \ \ \ \ of\ \ 600\ bit/s\ or
  281. an appropriate mix of channel data signalling rates having an aggregate bit
  282. rate of 48\ kbit/s.
  283. .LP
  284. The multiplex structure is divided into five phases of 9600\ bit/s, where 
  285. each phase shall be homogeneous with regard to the subscriber data 
  286. signalling rates.
  287. .LP
  288. 4.1.1
  289. \fIInterchange circuits and\fR 
  290. \fIinterface signalling\fR 
  291. \fIscheme\fR 
  292. .LP
  293. The interchange circuits between the DTE and the DCE are shown in Figure\ 
  294. 1/X.22 and a timing diagram for the signals is given in 
  295. Figure\ 2/X.22.
  296. .LP
  297. The signalling over the interchange circuits is as follows.
  298. .LP
  299. The transmit (T) and receive (R) circuits will convey in one
  300. time slot six consecutive user data bits for one subscriber
  301. channel (see Figure\ 2/X.22).
  302. .LP
  303. The control (C) and indication (I) circuits will convey the
  304. appropriate signal levels in accordance with Recommendation\ X.21 for the 
  305. data channel which in the same time slot have bits conveyed over the respective 
  306. data circuits. 
  307. .LP
  308. Change of condition on circuit C shall take place at the OFF to ON
  309. transition of circuit\ S at the beginning of the first bit in the 6\(hybit 
  310. byte. 
  311. The condition on circuit\ C shall be steady for the whole 6\(hybit byte.
  312. .LP
  313. Change of condition on circuit I will take place at the OFF to ON
  314. transition of circuit\ S at the beginning of the first bit in the 6\(hybit byte
  315. and the condition will be steady for the whole 6\(hybit byte.
  316. .LP
  317. The signal element timing (S) will operate for continuous isochronous transmission 
  318. at 48\ kbit/s. 
  319. .LP
  320. The \fIframe start identification\fR 
  321. \| circuit (F) will indicate the frame start with an OFF condition appearing 
  322. in the last bit of each frame. For 
  323. length will be 480\ bits. For networks using Recommendation\ X.50 division\ 3
  324. multiplexing in which the user rate of 600\ bit/s is not included, the frame
  325. length will be 120\ bits.
  326. .LP
  327. 4.2
  328. \fIMultiplex structure in networks providing 8\(hybit bytes\fR 
  329. .LP
  330. The DCE shall deliver to and receive from the DTE an 8\(hybit byte
  331. interleaved multiplexed bit stream containing a number of subscriber channels. 
  332. The allocation of the subscriber channels should be: 
  333. .LP
  334. \ 5\ channels\ (phases)\ of\ 9600\ bit/s\ or
  335. 10\ channels\ 
  336. (phases)
  337.  
  338. 20\ channels\ 
  339. (phases)
  340. \ of\ 2400\ bit/s\ or
  341. 80\ channels\ 
  342. (phases)
  343. \ of\ \ 600\ bit/s\ or
  344. an appropriate mix of channel data signalling rates having an aggregate bit
  345. rate of 48\ kbit/s.
  346. .LP
  347. The multiplex bit stream is divided into five phases of
  348. 9600\ bit/s, where each phase shall be homogeneous with regard to the subscriber 
  349. data signalling rates. 
  350. .LP
  351. 4.2.1
  352. \fIInterchange circuits and interface signalling scheme\fR 
  353. .LP
  354. The interchange circuits between the DTE and DCE are shown in
  355. Figure\ 1/X.22 and a timing diagram for the signals is given in Figure\ 
  356. 3/X.22. The signalling over the interchange circuits is as follows. 
  357. .LP
  358. The transmit (T) and receive (R) circuits will convey in one time slot 
  359. eight consecutive user data bits for one subscriber channel (see 
  360. Figure\ 3/X.22).
  361. .LP
  362. The control (C) and indication (I) circuits will convey the
  363. appropriate signal levels in accordance with Recommendation\ X.21 for the 
  364. data channel which in the same time slot have bits conveyed over the respective 
  365. data circuits.
  366. .LP
  367. Change of condition on circuit C shall take place at the OFF to ON
  368. transition of circuit\ S at the beginning of the first bit in the 8\(hybit 
  369. byte. 
  370. The condition on circuit\ C shall be steady for the whole 8\(hybit byte.
  371. .LP
  372. Change of condition on circuit I will take place at the OFF to ON
  373. transition of circuit\ S at the beginning of the first bit in the 8\(hybit byte
  374. and the condition will be steady for the whole 8\(hybit byte.
  375. .LP
  376. The signal element timing (S) will operate for continuous isochronous transmission 
  377. at 48\ kbit/s. 
  378. .LP
  379. The 
  380. \fIframe start identification\fR 
  381. \| circuit
  382. (F) will indicate
  383. the
  384. frame start with an OFF condition appearing in the position of the last 
  385. bit of each 640\(hybit frame. As an optional facility each frame start 
  386. could be followed by a code which will indicate the actual channel allocation. 
  387.  
  388.  
  389.  
  390.  
  391.  
  392. Establishment of test loops for DTE tests and network maintenance is for 
  393.  
  394. .LP
  395. .ce
  396. .ce
  397. \fBFigure 1/X.22, p.\fR 
  398. .ce
  399. .line
  400. .ce
  401. \fBFigure 2/X.22, p.\fR 
  402. .ce
  403. .line
  404. .ce
  405. \fBFigure 3/X.22, p.\fR 
  406. .ce
  407. \fBRecommendation\ X.24\fR 
  408. .ce
  409. .line
  410. .ce
  411. \fBLIST\ OF\fR 
  412. .ce
  413. .ce
  414. \fBDEFINITIONS\ FOR\ INTERCHANGE\ CIRCUITS\ BETWEEN\ DATA\fR 
  415. .ce
  416.  
  417. .ce
  418. \fBTERMINAL\ EQUIPMENT\ (DTE)\ AND\ DATA\ CIRCUIT\(hyTERMINATING\fR 
  419. .ce
  420. \fBEQUIPMENT\ (DCE)\fR 
  421. .ce
  422. \fB\ ON\ PUBLIC\ DATA\ NETWORKS\fR 
  423. .ce
  424. \fI(Geneva, 1976; amended at Geneva, 1980, Malaga\(hyTorremolinos, 1984,\fR 
  425. .ce
  426. \fIand Melbourne, 1988)\fR 
  427. .ce
  428. The\ CCITT,
  429. .ce
  430. .LP
  431.  
  432. \fIconsidering that\fR 
  433.  
  434. .LP
  435.  
  436. (a)
  437.  
  438. the interface between DTE and DCE on public data neworks requires, in addition 
  439. to the electrical and functional characteristics of the interchange circuits, 
  440. the definition of procedural characteristics for call 
  441.  
  442. control functions and selection of the facilities according to
  443.  
  444. Recommendation\ X.2;
  445.  
  446. .LP
  447.  
  448.  
  449.  
  450. (b)
  451.  
  452. the functions of the circuits defined in
  453.  
  454. Recommendation\ V.24 are based on the requirements of data transmission 
  455. over the general telephone network and are not appropriate for use at DTE/DCE 
  456. interfaces in public data networks; 
  457.  
  458. .LP
  459.  
  460. \fIunanimously declares\fR 
  461.  
  462. .LP
  463.  
  464. a Recommendation to include the list of definitions of
  465.  
  466. interchange circuits for use in public data networks is required.
  467.  
  468. .LP
  469.  
  470.  
  471.  
  472. \fB1\fR 
  473.  
  474. \fBScope\fR 
  475.  
  476. .LP
  477.  
  478. 1.1
  479.  
  480. This Recommendation applies to the functions of the interchange circuits 
  481. provided at the interface between DTE and DCE of data networks 
  482.  
  483. for the transfer of binary data, call control signals and timing signals.
  484.  
  485. .LP
  486.  
  487.  
  488.  
  489. For any type of practical equipment, a selection will be made from the 
  490. range of interchange circuits defined in this Recommendation, as 
  491.  
  492. appropriate. The actual interchange circuits to be used in a particular 
  493. DCE for a user class of service according to Recommendation\ X.1 and defined 
  494. user 
  495.  
  496. facilities according to Recommendation\ X.2, are those indicated in the
  497.  
  498. relevant Recommendation for the procedural characteristics of the interface,
  499.  
  500. e.g.,\ Recommendation\ X.20 or\ X.21.
  501.  
  502. .LP
  503.  
  504.  
  505.  
  506.  
  507.  
  508. To enable a standard DTE to be developed, the use and termination by the 
  509. DTE of certain circuits even when implemented in the DCE are not mandatory. 
  510. This is covered by the individual interface Recommendations. 
  511.  
  512. .LP
  513.  
  514. The interchange circuits defined for the transfer of binary data are also 
  515. used for the exchange of call control signals. 
  516.  
  517. .LP
  518.  
  519. The electrical characteristics of the interchange circuits are
  520.  
  521. detailed in the appropriate Recommendation for electrical characteristics of
  522.  
  523. interchange circuits. The application of those characteristics for a particular 
  524. DCE is specified in the Recommendation for the procedural characteristics 
  525.  
  526. of the interface.
  527.  
  528. .LP
  529.  
  530. 1.2
  531.  
  532. The range of interchange circuits defined in this
  533.  
  534. Recommendation is applicable to the range of services which could be offered 
  535. on a public data network, e.g.,\ circuit switching services (synchronous 
  536. and 
  537.  
  538. start/stop), telex service, packet switching services, message registration 
  539. and retransmission service and facsimile service. 
  540.  
  541. .LP
  542.  
  543. \fB2\fR 
  544.  
  545. \fBLine of demarcation\fR 
  546.  
  547. .LP
  548.  
  549.  
  550.  
  551.  
  552.  
  553. The interface between DTE and DCE is located at a connector which is the 
  554. interchange point between these two classes of equipment shown in 
  555.  
  556. Figure\ 1/X.24.
  557.  
  558. .LP
  559.  
  560. .LP
  561.  
  562. \fBFigure 1/X.24, p.\fR 
  563.  
  564. 2.1
  565.  
  566. The connector will not necessarily be physically attached to
  567.  
  568. the DCE and may be mounted in a fixed position near the DTE. The female part
  569.  
  570. of the connector belongs to the DCE.
  571.  
  572. .LP
  573.  
  574. 2.2
  575.  
  576. An interconnecting cable will normally be provided together
  577.  
  578. with the DTE. The cable length is limited by electrical parameters specified
  579.  
  580. in the appropriate Recommendations for the electrical characteristics of the
  581.  
  582. interchange circuits.
  583.  
  584. .LP
  585.  
  586. \fB3\fR 
  587.  
  588. \fBDefinition of\fR 
  589.  
  590.  
  591.  
  592. \fBinterchange circuits\fR 
  593.  
  594. .LP
  595.  
  596. A list of the data network series interchange circuits is presented in 
  597. tabular form in Table\ 1/X.24. 
  598.  
  599. .LP
  600.  
  601. .LP
  602.  
  603. \fBTable 1/X.24 [T1.24], p.\fR 
  604.  
  605. 3.1
  606.  
  607. \fICircuit\ G\ \(em\ Signal ground or common return\fR 
  608.  
  609. .LP
  610.  
  611. This conductor establishes the signal common reference potential
  612.  
  613. for unbalanced double\(hycurrent interchange circuits with electrical
  614.  
  615. characteristics according to Recommendation\ V.28. In the case of
  616.  
  617. interchange circuits according to Recommendations\ V.10 and\ V.11, it
  618.  
  619. interconnects the zero volt reference points of a generator and a receiver 
  620. to reduce environmental signal interference, if required. 
  621.  
  622. .LP
  623.  
  624. Within the DCE, this conductor shall be brought to one point,
  625.  
  626. protective ground or earth, by means of a metallic strap within the equipment. 
  627. This metallic strap can be connected or removed at installation, as may 
  628. be 
  629.  
  630. required, to minimize the introduction of noise into electronic circuitry 
  631. or to meet applicable regulations. 
  632.  
  633. .LP
  634.  
  635. \fINote\fR 
  636.  
  637. \ \(em\ Where a shielded interconnecting cable is used at the
  638.  
  639. interface, the shield may be connected either to circuit\ G, or to protective
  640.  
  641. ground in accordance with national regulations. Protective ground may be
  642.  
  643. further connected to external grounds as required by applicable electrical
  644.  
  645. safety regulations.
  646.  
  647. .LP
  648.  
  649.  
  650.  
  651. For unbalanced interchange circuits with electrical characteristics in 
  652. accordance with Recommendation\ V.10, two common\(hyreturn conductors are 
  653. required, one for each direction of signalling, each conductor being connected 
  654. to ground only on the generator side of the interface. Where used, these 
  655. shall be 
  656.  
  657. designated circuits\ Ga and\ Gb, and they are defined as follows:
  658.  
  659. .LP
  660.  
  661.  
  662.  
  663. \fICircuit\ Ga\ \(em\ DTE common return\fR 
  664.  
  665. .LP
  666.  
  667. This conductor is connected to the DTE circuit common and is used
  668.  
  669. as the reference potential for the unbalanced\ X.26 type interchange circuit
  670.  
  671. receivers within the DCE.
  672.  
  673. .LP
  674.  
  675. \fICircuit\ Gb\ \(em\ DCE common return\fR 
  676.  
  677. .LP
  678.  
  679. This conductor is connected to the DCE circuit common and is used
  680.  
  681. as the reference potential for the unbalanced\ X.26 type interchange circuit
  682.  
  683. receivers within the DTE.
  684.  
  685. .LP
  686.  
  687. 3.2
  688.  
  689. \fICircuit\ T\ \(em\ Transmit\fR 
  690.  
  691. .LP
  692.  
  693. \fIDirection:\fR 
  694.  
  695. To DCE
  696.  
  697. .LP
  698.  
  699. The binary signals originated by the DTE to be transmitted during the data 
  700. transfer phase via the data circuit to one or more remote DTEs are 
  701.  
  702. transferred on this circuit to the DCE.
  703.  
  704. .LP
  705.  
  706.  
  707.  
  708.  
  709.  
  710. This circuit also transfers the call control signals originated by the 
  711. DTE, to be transmitted to the DCE in the call establishment and other call 
  712.  
  713. control phases as specified by the relevant Recommendations for the procedural 
  714. characteristic of the interface. 
  715.  
  716. .LP
  717.  
  718. The DCE monitors this circuit for detection of electrical circuit
  719.  
  720. fault conditions, according to the specifications of the electrical
  721.  
  722. characteristics of the interface. A circuit fault is to be interpreted 
  723. by the DCE as defined in the Recommendation for the procedural characteristics 
  724. of 
  725.  
  726. the interface.
  727.  
  728. .LP
  729.  
  730. 3.3
  731.  
  732. \fICircuit\ R\ \(em\ Receive\fR 
  733.  
  734. .LP
  735.  
  736. \fIDirection:\fR 
  737.  
  738. \ From DCE
  739.  
  740. .LP
  741.  
  742. The binary signals sent by the DCE as received during the data
  743.  
  744. transfer phase from a remote DTE, are transferred on this circuit to the DTE.
  745.  
  746. .LP
  747.  
  748.  
  749.  
  750. This circuit also transfers the call control signals sent by the DCE as 
  751. received during the call establishment and other call control phases as 
  752.  
  753. specified by the relevant Recommendations for the procedural characteristics 
  754. of the interface. 
  755.  
  756. .LP
  757.  
  758.  
  759.  
  760. The DTE monitors this circuit for detection of electrical circuit
  761.  
  762. fault conditions, according to the specifications of the electrical
  763.  
  764. characteristics of the interface. A circuit fault is to be interpreted 
  765. by the DTE as defined in the Recommendation for the procedural characteristics 
  766. of 
  767.  
  768. the interface.
  769.  
  770. .LP
  771.  
  772. 3.4
  773.  
  774. \fICircuit\ C\ \(em\ Control\fR 
  775.  
  776. .LP
  777.  
  778. \fIDirection:\fR 
  779.  
  780. \ To DCE
  781.  
  782. .LP
  783.  
  784. Signals on this circuit control the DCE for a particular signalling process.
  785.  
  786. .LP
  787.  
  788. Representation of a control signal requires additional coding of
  789.  
  790. circuit\ T\(hy\fITransmit\fR 
  791.  
  792. \|as specified in the relevant Recommendation for the
  793.  
  794. procedural characteristics of the interface. During the data phase, this
  795.  
  796. circuit shall remain ON. During the call control phases, the condition 
  797. of this circuit shall be as specified in the relevant Recommendation for 
  798. the procedural characteristics of the interface. 
  799.  
  800. .LP
  801.  
  802. \fINote\fR 
  803.  
  804. \ \(em\ After appropriate selection of special user facilities (not yet 
  805. defined), it might be required to change the ON condition after entering 
  806.  
  807. the data phase in accordance with the regulations for the use of these
  808.  
  809. facilities. This subject is for further study.
  810.  
  811. .LP
  812.  
  813. The DCE monitors this circuit for detection of electrical circuit
  814.  
  815. fault conditions, according to the specifications of the electrical
  816.  
  817. characteristics of the interface. A circuit fault is to be interpreted 
  818. by the DCE as defined in the Recommendation for the procedural characteristics 
  819. of 
  820.  
  821. the interface.
  822.  
  823. .LP
  824.  
  825. 3.5
  826.  
  827. \fICircuit\ I\ \(em\ Indication\fR 
  828.  
  829. .LP
  830.  
  831. \fIDirection:\fR 
  832.  
  833. \ From DCE
  834.  
  835. .LP
  836.  
  837. Signals on this circuit indicate to the DTE the state of the call control 
  838. process. 
  839.  
  840. .LP
  841.  
  842. Representation of a control signal requires additional coding of
  843.  
  844. circuit\ R\(hy\fIReceive\fR 
  845.  
  846. , as specified in the relevant Recommendation for the
  847.  
  848. procedural characteristics of the interface. The ON condition of this circuit 
  849. signifies that signals on circuit\ R contain information from the distant 
  850. DTE. The OFF condition signifies a control signalling condition which is 
  851. defined by the bit sequence on circuit\ R as specified by the procedural 
  852. characteristics 
  853.  
  854. of the interface.
  855.  
  856. .LP
  857.  
  858.  
  859.  
  860. The DTE monitors this circuit for detection of electrical circuit
  861.  
  862. fault conditions, according to the specifications of the electrical
  863.  
  864. characteristics of the interface. A circuit fault is to be interpreted 
  865. by the DTE as defined in the Recommendation for the procedural characteristics 
  866. of 
  867.  
  868. the interface.
  869.  
  870. .LP
  871.  
  872. \fINote\fR 
  873.  
  874. \ \(em\ For use with special user facilities (not yet defined) it
  875.  
  876. might be required to use the OFF condition after entering the data transfer
  877.  
  878. phase in accordance with the regulations for the use of these facilities.
  879.  
  880. This subject is for further study.
  881.  
  882. .LP
  883.  
  884. 3.6
  885.  
  886. \fICircuit\ S\ \(em\ \fR 
  887.  
  888. \fISignal element timing\fR 
  889.  
  890. .LP
  891.  
  892. \fIDirection:\fR 
  893.  
  894. \ From DCE
  895.  
  896. .LP
  897.  
  898. Signals on this circuit provide the DTE with signal element timing information. 
  899. The condition of this circuit shall be ON and OFF for nominally 
  900.  
  901. equal periods of time. However, for burst isochronous operations, longer
  902.  
  903. periods of OFF condition may be permitted equal to an integer odd number of
  904.  
  905. the nominal period of the ON condition as specified by the relevant procedural 
  906. characteristics of the interface. 
  907.  
  908. .LP
  909.  
  910.  
  911.  
  912.  
  913.  
  914. The DTE shall present a binary signal on circuit\ T\(hy\fITransmit\fR 
  915.  
  916. \|and a   condition on circuit\ C\(hy\fIControl\fR 
  917.  
  918. , in which the transitions nominally occur at the time of the transitions 
  919. from OFF to ON condition of this circuit. 
  920.  
  921. .LP
  922.  
  923.  
  924.  
  925. The DCE presents a binary signal on circuit\ R\(hy\fIReceive\fR 
  926.  
  927. \|and a
  928.  
  929. condition on circuit\ I\(hy\fIIndication\fR 
  930.  
  931.  \|in which the transitions nominally occur at the time of the transitions 
  932. from OFF to ON condition of this circuit. 
  933.  
  934. .LP
  935.  
  936.  
  937.  
  938. The transition from ON to OFF condition shall nominally indicate the centre 
  939. of each signal element on circuit\ R. 
  940.  
  941. .LP
  942.  
  943. The DCE shall transfer signal element timing information on this
  944.  
  945. circuit across the interface at all times that the timing source is capable 
  946. of generating this information. 
  947.  
  948. .LP
  949.  
  950. 3.7
  951.  
  952. \fICircuit\ B\ \(em\ \fR 
  953.  
  954. \fIByte timing\fR 
  955.  
  956. (see Note 2)
  957.  
  958. .LP
  959.  
  960. \fIDirection:\fR 
  961.  
  962. \ From DCE
  963.  
  964. .LP
  965.  
  966. Signals on this circuit provide the DTE with 8\(hybit byte timing
  967.  
  968. information. The condition of this circuit shall be OFF for nominally the
  969.  
  970. period of the ON condition of circuit\ S\(hy\fISignal element timing\fR 
  971.  
  972.  which indicates the last bit of an 8\(hybit byte and shall be ON at all 
  973. other times within the 
  974.  
  975. period of the 8\(hybit byte.
  976.  
  977. .LP
  978.  
  979.  
  980.  
  981.  
  982.  
  983. During the call control phases, the call control characters and steady 
  984. state conditions used for all information transfers between the DCE and 
  985. the 
  986.  
  987. DTE, in either direction, shall be correctly aligned to the signals of
  988.  
  989. circuit\ B.
  990.  
  991. .LP
  992.  
  993. The DTE shall present the beginning of the first bit of each call
  994.  
  995. control character on circuit\ T\(hy\fITransmit\fR 
  996.  
  997. nominally at the time of the
  998.  
  999. OFF to ON transition of circuit\ S which follows the OFF to ON transition of
  1000.  
  1001. circuit\ B.
  1002.  
  1003. .LP
  1004.  
  1005. A change of condition of circuit\ C\(hy\fIControl\fR 
  1006.  
  1007. \|may occur at any
  1008.  
  1009. OFF to ON transition of circuit\ S, but it will be sampled in the DCE at the
  1010.  
  1011. time of the OFF to ON transition of circuit\ B, i.e., for evaluation of the
  1012.  
  1013. following call control character on circuit\ T.
  1014.  
  1015. .LP
  1016.  
  1017. The centre of the last bit of each call control character will be
  1018.  
  1019. presented by the DCE on circuit\ R\(hy\fIReceive\fR 
  1020.  
  1021. nominally at the time of the
  1022.  
  1023. OFF to ON transition of circuit\ B.
  1024.  
  1025. .LP
  1026.  
  1027. A change of condition of circuit\ I\(hy\fIIndication\fR 
  1028.  
  1029.  \|will occur nominally at the OFF to ON transition of circuit\ S which 
  1030. follows the OFF to ON 
  1031.  
  1032. transition of circuit\ B.
  1033.  
  1034. .LP
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040. The DCE shall transfer byte timing information on this circuit across the 
  1041. interface at all times that the timing source is capable of generating 
  1042. this information. 
  1043.  
  1044. .LP
  1045.  
  1046. \fINote\ 1\fR 
  1047.  
  1048. \ \(em\ During the data transfer phase, DTEs communicating by
  1049.  
  1050. means of an 8\(hybit code may utilize the byte timing information for mutual
  1051.  
  1052. character alignment.
  1053.  
  1054. .LP
  1055.  
  1056. It is a prerequisite for the provision of this feature that
  1057.  
  1058. character alignment is preserved after the call has entered the data transfer 
  1059. phase and that the alignment obtained at one interface is synchronized 
  1060. to the alignment at the other interface. (This is only possible on some 
  1061. connections.) 
  1062.  
  1063. .LP
  1064.  
  1065. Furthermore, where this feature is available, a change of condition
  1066.  
  1067. on circuit\ C as defined above may result in an equivalent change in the
  1068.  
  1069. relative alignment on circuit\ I at the distant interface.
  1070.  
  1071. .LP
  1072.  
  1073. \fINote\ 2\fR 
  1074.  
  1075. \ \(em\ In some Recommendations for the procedural
  1076.  
  1077. characteristics of the interface (e.g.,\ X.21), the use and termination 
  1078. of this circuit by the DTE is not mandatory even when implemented in the 
  1079. DCE. 
  1080.  
  1081. .LP
  1082.  
  1083.  
  1084.  
  1085. 3.8
  1086.  
  1087. \fICircuit\ F\ \(em\ Frame start identification\fR 
  1088.  
  1089. .LP
  1090.  
  1091. \fIDirection:\fR 
  1092.  
  1093. \ From DCE
  1094.  
  1095. .LP
  1096.  
  1097. Signals on this circuit continuously provide the DTE with a
  1098.  
  1099. multiplex frame start indication when connected to a multiplexed DTE/DCE
  1100.  
  1101. interface.
  1102.  
  1103. .LP
  1104.  
  1105. The condition on this circuit shall be OFF for the nominal period of one 
  1106. bit, indicating the last bit of the multiplex frame. At other times the 
  1107.  
  1108. circuit shall remain\ ON.
  1109.  
  1110. .LP
  1111.  
  1112. The first data bit on subscriber channel 1 shall be transmitted or
  1113.  
  1114. received beginning nominally at the OFF to ON transition of circuit\ F.
  1115.  
  1116. .LP
  1117.  
  1118.  
  1119.  
  1120. 3.9
  1121.  
  1122. \fICircuit\ X\ \(em\ DTE transmit signal element timing\fR 
  1123.  
  1124. (see Note)
  1125.  
  1126. .LP
  1127.  
  1128.  
  1129.  
  1130. \fIDirection:\fR 
  1131.  
  1132. \ To DCE
  1133.  
  1134. .LP
  1135.  
  1136. Signals on this circuit provide signal element timing information for the 
  1137. transmit direction in cases where circuit\ S only provides signal 
  1138.  
  1139. element timing for the receive direction. The condition of this circuit 
  1140. shall be ON and OFF for nominally equal periods of time. However, for burst 
  1141.  
  1142. isochronous operations, longer periods of OFF condition may be permitted  
  1143.  
  1144. equal to an integer odd number of the nominal period of the ON condition as
  1145.  
  1146. specified by the relevant procedural characteristics of the interface.
  1147.  
  1148. .LP
  1149.  
  1150.  
  1151.  
  1152. The DTE shall present a binary signal on the circuit T\(hy\fITransmit\fR 
  1153.  
  1154. \|and a condition on circuit\ C\(hy\fIControl\fR 
  1155.  
  1156. , in which the transitions nominally occur at the time of the transitions 
  1157. from OFF to ON condition of this circuit. 
  1158.  
  1159. .LP
  1160.  
  1161.  
  1162.  
  1163. The transition from ON to OFF condition shall nominally indicate the centre 
  1164. of each signal element on circuit\ T. 
  1165.  
  1166. .LP
  1167.  
  1168. \fINote\fR 
  1169.  
  1170. \ \(em\ The use and termination of this circuit by the DCE is a
  1171.  
  1172. national matter.
  1173.  
  1174. .LP
  1175.  
  1176.  
  1177.  
  1178. \fBRecommendation X.25\fR 
  1179.  
  1180. .LP
  1181.  
  1182. \fBINTERFACE\ BETWEEN\ DATA\ TERMINAL\ EQUIPMENT\ (DTE)\ AND\ DATA\fR 
  1183.  
  1184.  
  1185.  
  1186. \fBCIRCUIT\(hyTERMINATING\ EQUIPMENT\ (DCE)\ FOR\ TERMINALS\ OPERATING\fR 
  1187.  
  1188. \fBIN\ THE\ PACKET\ MODE\ AND\ CONNECTED\ TO\ PUBLIC\fR 
  1189.  
  1190. \fBDATA\ NETWORKS\ BY\ DEDICATED\ CIRCUIT\fR 
  1191.  
  1192. \fI(Geneva, 1976; amended at Geneva, 1980\fR 
  1193.  
  1194. ,
  1195.  
  1196. \fIMalaga\(hyTorremolinos, 1984 and Melbourne, 1988)\fR 
  1197.  
  1198.  
  1199.  
  1200. The establishment in various countries of public data networks providing 
  1201. packet switched data transmission services creates a need to produce standards 
  1202. to facilitate international interworking. 
  1203.  
  1204. .LP
  1205.  
  1206. The\ CCITT,
  1207.  
  1208. .LP
  1209.  
  1210. \fIconsidering\fR 
  1211.  
  1212. .LP
  1213.  
  1214.  
  1215.  
  1216. (a)
  1217.  
  1218. that Recommendation X.1 includes specific user classes of service for data 
  1219. terminal equipments operating in the packet mode, 
  1220.  
  1221. Recommendation\ X.2 defines user facilities, Recommendation\ X.10 defines
  1222.  
  1223. categories of access, Recommendations\ X.21 and X.21\|\fIbis\fR 
  1224.  
  1225. define DTE/DCE
  1226.  
  1227. physical layer interface characteristics, Recommendation\ X.92 defines the
  1228.  
  1229. hypothetical reference connections for packet switched data transmission
  1230.  
  1231. service and Recommendation\ X.96 defines \fIcall progress\fR 
  1232.  
  1233. signals;
  1234.  
  1235. .LP
  1236.  
  1237. (b)
  1238.  
  1239. that data terminal equipments operating in the packet
  1240.  
  1241. mode will send and receive network control information in the form of packets;
  1242.  
  1243. .LP
  1244.  
  1245.  
  1246.  
  1247. (c)
  1248.  
  1249. that certain data terminal equipments operating in the packet mode will 
  1250. use a 
  1251.  
  1252. packet interleaved synchronous data circuit
  1253.  
  1254. ;
  1255.  
  1256. .LP
  1257.  
  1258. (d)
  1259.  
  1260. the desirability of being able to use a single data
  1261.  
  1262. circuit to a Data Switching Exchange\ (DSE) for all user facilities;
  1263.  
  1264. .LP
  1265.  
  1266.  
  1267.  
  1268. (e)
  1269.  
  1270. that Recommendation X.2 specifies which of the various data transmission 
  1271. services and optional user facilities described in the 
  1272.  
  1273. present Recommendation are \*Qessential\*U and have thus to be made available
  1274.  
  1275. internationally, and which are not;
  1276.  
  1277. .LP
  1278.  
  1279.  
  1280.  
  1281. (f
  1282.  
  1283.  
  1284. the need for defining an international
  1285.  
  1286. Recommendation for the exchange between DTE and DCE of control information 
  1287. for the use of packet switched data transmission services; 
  1288.  
  1289. .LP
  1290.  
  1291. (g)
  1292.  
  1293. that this definition is made in Recommendation X.32 with regard to the 
  1294. access through a public switched telephone network, an integrated services 
  1295. digital network (ISDN), or a circuit switched public data network; 
  1296.  
  1297. .LP
  1298.  
  1299.  
  1300.  
  1301. (h)
  1302.  
  1303. that Recommendation X.31 defines the support of
  1304.  
  1305. packet\(hymode
  1306.  
  1307. terminal equipment by an integrated services digital network (ISDN);
  1308.  
  1309. .LP
  1310.  
  1311. (i)
  1312.  
  1313. that, when this Recommendation is used to support the
  1314.  
  1315. Network Service defined in Recommendation\ X.213, the physical, data link and
  1316.  
  1317. packet
  1318.  
  1319. layers correspond to the Physical, Data link and Network Layers respectively, 
  1320. as defined in Recommendation\ X.200; 
  1321.  
  1322. .LP
  1323.  
  1324. (j)
  1325.  
  1326. that this Recommendation includes all the features
  1327.  
  1328. necessary to support the services included in Recommendation\ X.213 as 
  1329. well as other features; that Recommendation\ X.223 defines the use of X.25 
  1330. packet layer protocol to provide the OSI connection mode Network service; 
  1331.  
  1332. .LP
  1333.  
  1334. (k)
  1335.  
  1336. that the necessary elements for an interface
  1337.  
  1338. Recommendation should be defined independently as:
  1339.  
  1340. .LP
  1341.  
  1342.  
  1343.  
  1344. \fIPhysical layer\fR 
  1345.  
  1346. \ \(em\ the mechanical, electrical, functional and
  1347.  
  1348. procedural characteristics to activate, maintain and deactivate
  1349.  
  1350. the physical link between the DTE and the DCE;
  1351.  
  1352. .LP
  1353.  
  1354. \fIData link layer\fR 
  1355.  
  1356. \ \(em\ the link access procedure for data interchange
  1357.  
  1358. across the link between the DTE and the DCE;
  1359.  
  1360. .LP
  1361.  
  1362. \fIPacket layer\fR 
  1363.  
  1364. \ \(em\ the packet format and control procedures for the
  1365.  
  1366. exchange of packets containing control information and user
  1367.  
  1368. data between the DTE and the DCE;
  1369.  
  1370. .LP
  1371.  
  1372. \fIunanimously declares\fR 
  1373.  
  1374. .LP
  1375.  
  1376.  
  1377.  
  1378. that for public data networks accessed via dedicated circuits by data terminal 
  1379. equipments operating in the packet mode: 
  1380.  
  1381. .LP
  1382.  
  1383. (1)
  1384.  
  1385. the mechanical, electrical, functional and procedural
  1386.  
  1387. characteristics to activate, maintain and deactivate the physical link 
  1388. between the DTE and the DCE should be as specified in \(sc\ 1 below, \fIDTE/DCE 
  1389. interface\fR 
  1390.  
  1391. \fIcharacteristics\fR 
  1392.  
  1393. ;
  1394.  
  1395. .LP
  1396.  
  1397. (2)
  1398.  
  1399. the link access procedure for data interchange across
  1400.  
  1401. the link between the DTE and the DCE should be as specified in \(sc\ 2 below,
  1402.  
  1403. \fILink access procedure across the DTE/DCE interface\fR 
  1404.  
  1405. ;
  1406.  
  1407. .LP
  1408.  
  1409. (3)
  1410.  
  1411. the packet layer procedures for the exchange of control information and 
  1412. user data at the DTE/DCE interface should be as specified in 
  1413.  
  1414. \(sc\ 3 below, \fIDescription of the packet layer DTE/DCE interface\fR 
  1415.  
  1416. ;
  1417.  
  1418. .LP
  1419.  
  1420. (4)
  1421.  
  1422. the procedures for virtual call and permanent virtual
  1423.  
  1424. circuit services should be as specified in \(sc\ 4 below, \fIProcedures 
  1425. for virtual\fR 
  1426.  
  1427. \fIcircuit services\fR 
  1428.  
  1429. ;
  1430.  
  1431. .LP
  1432.  
  1433.  
  1434.  
  1435. (5)
  1436.  
  1437. the format for packets exchanged between the DTE and the DCE should be 
  1438. as specified in \(sc\ 5 below, \fIPacket formats\fR 
  1439.  
  1440. ;
  1441.  
  1442. .LP
  1443.  
  1444. (6)
  1445.  
  1446. the procedures for optional user facilities should be as specified in \(sc\ 
  1447. 6 below, \fIProcedures for optional user facilities\fR 
  1448.  
  1449. ;
  1450.  
  1451. .LP
  1452.  
  1453. (7)
  1454.  
  1455. the formats for optional user facilities should be as
  1456.  
  1457. specified in \(sc\ 7 below, \fIFormats for facility fields and registration 
  1458. fields\fR 
  1459.  
  1460. .
  1461.  
  1462. .LP
  1463.  
  1464.  
  1465.  
  1466. \fINote\fR 
  1467.  
  1468. \ \(em\ This Recommendation fully specifies the behaviour of the DCE. In 
  1469. addition, a minimum set of requirements is specified for the DTE. 
  1470.  
  1471. Additional guidance for the design of DTEs is available in ISO standards
  1472.  
  1473. ISO\ 7776 (data link layer) and ISO\ 8208 (packet layer). It is not required 
  1474. by this Recommendation that these ISO standards be used. If using these 
  1475. ISO 
  1476.  
  1477. standards, note must be taken that their scope is expanded beyond that 
  1478. of just interfacing with packet switched public data networks. 
  1479.  
  1480. .LP
  1481.  
  1482. It should also be noted that this Recommendation uses the term DTE to refer 
  1483. to the equipment to which the DCE interfaces. In ISO\ 8208, distinction 
  1484. is made between a DTE and a packet switched private data network, which 
  1485. are both considered as DTEs in this Recommendation. 
  1486.  
  1487. .LP
  1488.  
  1489. CONTENTS
  1490.  
  1491. 1
  1492.  
  1493. \fIDTE/DCE interface characteristics (physical layer)\fR 
  1494.  
  1495. .LP
  1496.  
  1497. 1.1
  1498.  
  1499. X.21 interface
  1500.  
  1501. .LP
  1502.  
  1503. 1.2
  1504.  
  1505. X.21\|\fIbis\fR 
  1506.  
  1507. interface
  1508.  
  1509. .LP
  1510.  
  1511. 1.3
  1512.  
  1513. V\(hyseries interface
  1514.  
  1515. .LP
  1516.  
  1517. 1.4
  1518.  
  1519. X.31 interface
  1520.  
  1521. .LP
  1522.  
  1523. 2
  1524.  
  1525. \fILink access procedures across the DTE/DCE interface\fR 
  1526.  
  1527. .LP
  1528.  
  1529. 2.1
  1530.  
  1531. Scope and field of application
  1532.  
  1533. .LP
  1534.  
  1535. 2.2
  1536.  
  1537. Frame structure
  1538.  
  1539. .LP
  1540.  
  1541. 2.3
  1542.  
  1543. LAPB elements of procedures
  1544.  
  1545. .LP
  1546.  
  1547. 2.4
  1548.  
  1549. Description of the LAPB procedure
  1550.  
  1551. .LP
  1552.  
  1553. 2.5
  1554.  
  1555. Multilink procedure (MLP)
  1556.  
  1557. .LP
  1558.  
  1559. 2.6
  1560.  
  1561. LAP elements of procedure
  1562.  
  1563. .LP
  1564.  
  1565. 2.7
  1566.  
  1567. Description of the LAP procedure
  1568.  
  1569. .LP
  1570.  
  1571. 3
  1572.  
  1573. \fIDescription of the packet layer DTE/DCE interface\fR 
  1574.  
  1575. .LP
  1576.  
  1577. 3.1
  1578.  
  1579. Logical channels
  1580.  
  1581. .LP
  1582.  
  1583. 3.2
  1584.  
  1585. Basic structure of packets
  1586.  
  1587. .LP
  1588.  
  1589. 3.3
  1590.  
  1591. Procedure for restart
  1592.  
  1593. .LP
  1594.  
  1595. 3.4
  1596.  
  1597. Error handling
  1598.  
  1599. .LP
  1600.  
  1601. 4
  1602.  
  1603. \fIProcedures for virtual circuit services\fR 
  1604.  
  1605. .LP
  1606.  
  1607. 4.1
  1608.  
  1609. Procedures for virtual call service
  1610.  
  1611. .LP
  1612.  
  1613. 4.2
  1614.  
  1615. Procedures for permanent virtual circuit service
  1616.  
  1617. .LP
  1618.  
  1619. 4.3
  1620.  
  1621. Procedures for data and interrupt transfer
  1622.  
  1623. .LP
  1624.  
  1625. 4.4
  1626.  
  1627. Procedures for flow control
  1628.  
  1629. .LP
  1630.  
  1631. 4.5
  1632.  
  1633. Effects of clear, reset and restart procedures
  1634.  
  1635. on the transfer of packets
  1636.  
  1637. .LP
  1638.  
  1639. 4.6
  1640.  
  1641. Effects of the physical and the data link layer on the
  1642.  
  1643. packet layer
  1644.  
  1645. .LP
  1646.  
  1647. 5
  1648.  
  1649. \fIPacket formats\fR 
  1650.  
  1651. .LP
  1652.  
  1653. 5.1
  1654.  
  1655. General
  1656.  
  1657. .LP
  1658.  
  1659.  
  1660.  
  1661. 5.2
  1662.  
  1663. Call set\(hyup and clearing packets
  1664.  
  1665. .LP
  1666.  
  1667. 5.3
  1668.  
  1669. Data and interrupt packets
  1670.  
  1671. .LP
  1672.  
  1673. 5.4
  1674.  
  1675. Flow control and reset packets
  1676.  
  1677. .LP
  1678.  
  1679. 5.5
  1680.  
  1681. Restart packets
  1682.  
  1683. .LP
  1684.  
  1685. 5.6
  1686.  
  1687. Diagnostic packet
  1688.  
  1689. .LP
  1690.  
  1691. 5.7
  1692.  
  1693. Packets required for optional user facilities
  1694.  
  1695. .LP
  1696.  
  1697.  
  1698.  
  1699. 6
  1700.  
  1701. \fIProcedures for optional user facilities (packet layer)\fR 
  1702.  
  1703. .LP
  1704.  
  1705.  
  1706.  
  1707. 6.1
  1708.  
  1709. On\(hyline facility registration
  1710.  
  1711. .LP
  1712.  
  1713. 6.2
  1714.  
  1715. Extended packet sequence numbering
  1716.  
  1717. .LP
  1718.  
  1719. 6.3
  1720.  
  1721. D bit modification
  1722.  
  1723. .LP
  1724.  
  1725. 6.4
  1726.  
  1727. Packet retransmission
  1728.  
  1729. .LP
  1730.  
  1731. 6.5
  1732.  
  1733. Incoming calls barred
  1734.  
  1735. .LP
  1736.  
  1737. 6.6
  1738.  
  1739. Outgoing calls barred
  1740.  
  1741. .LP
  1742.  
  1743. 6.7
  1744.  
  1745. One\(hyway logical channel outgoing
  1746.  
  1747. .LP
  1748.  
  1749. 6.8
  1750.  
  1751. One\(hyway logical channel incoming
  1752.  
  1753. .LP
  1754.  
  1755. 6.9
  1756.  
  1757. Non\(hystandard default packet sizes
  1758.  
  1759. .LP
  1760.  
  1761. 6.10
  1762.  
  1763. Non\(hystandard default window sizes
  1764.  
  1765. .LP
  1766.  
  1767.  
  1768.  
  1769. 6.11
  1770.  
  1771. Default throughput classes assignment
  1772.  
  1773. .LP
  1774.  
  1775. 6.12
  1776.  
  1777. Flow control parameter negotiation
  1778.  
  1779. .LP
  1780.  
  1781. 6.13
  1782.  
  1783. Throughput class negotiation
  1784.  
  1785. .LP
  1786.  
  1787. 6.14
  1788.  
  1789. Closed user group related facilities
  1790.  
  1791. .LP
  1792.  
  1793. 6.15
  1794.  
  1795. Bilateral closed user group related facilities
  1796.  
  1797. .LP
  1798.  
  1799. 6.16
  1800.  
  1801. Fast select
  1802.  
  1803. .LP
  1804.  
  1805. 6.17
  1806.  
  1807. Fast select acceptance
  1808.  
  1809. .LP
  1810.  
  1811. 6.18
  1812.  
  1813. Reverse charging
  1814.  
  1815. .LP
  1816.  
  1817. 6.19
  1818.  
  1819. Reverse charging acceptance
  1820.  
  1821. .LP
  1822.  
  1823. 6.20
  1824.  
  1825. Local charging prevention
  1826.  
  1827. .LP
  1828.  
  1829. 6.21
  1830.  
  1831. Network user identification (NUI) related facilities
  1832.  
  1833. .LP
  1834.  
  1835.  
  1836.  
  1837. 6.22
  1838.  
  1839. Charging information
  1840.  
  1841. .LP
  1842.  
  1843. 6.23
  1844.  
  1845. RPOA related facilities
  1846.  
  1847. .LP
  1848.  
  1849. 6.24
  1850.  
  1851. Hunt group
  1852.  
  1853. .LP
  1854.  
  1855. 6.25
  1856.  
  1857. Call redirection and call deflection related facilities
  1858.  
  1859. .LP
  1860.  
  1861.  
  1862.  
  1863. 6.26
  1864.  
  1865. Called line address modified notification
  1866.  
  1867. .LP
  1868.  
  1869. 6.27
  1870.  
  1871. Transit delay selection and indication
  1872.  
  1873. .LP
  1874.  
  1875. 6.28
  1876.  
  1877. TOA/NEI address subscription
  1878.  
  1879. .LP
  1880.  
  1881. 7
  1882.  
  1883. \fIFormats for facility fields and registration fields\fR 
  1884.  
  1885. .LP
  1886.  
  1887. 7.1
  1888.  
  1889. General
  1890.  
  1891. .LP
  1892.  
  1893. 7.2
  1894.  
  1895. Coding of facility field in call set\(hyup
  1896.  
  1897. and clearing packets
  1898.  
  1899. .LP
  1900.  
  1901. 7.3
  1902.  
  1903. Coding of the registration field of
  1904.  
  1905. registration packets
  1906.  
  1907. .LP
  1908.  
  1909. \fIAnnex\ A\fR 
  1910.  
  1911. \(em
  1912.  
  1913. Range of logical channels used for virtual calls
  1914.  
  1915. and permanent virtual circuits
  1916.  
  1917. .LP
  1918.  
  1919. \fIAnnex\ B\fR 
  1920.  
  1921. \(em
  1922.  
  1923. Packet layer DTE/DCE interface state diagrams
  1924.  
  1925. .LP
  1926.  
  1927.  
  1928.  
  1929. \fIAnnex\ C\fR 
  1930.  
  1931. \(em
  1932.  
  1933. Actions taken by the DCE on receipt of packets
  1934.  
  1935. in a given state of the packet layer DTE/DCE interface as
  1936.  
  1937. perceived by the DCE
  1938.  
  1939. .LP
  1940.  
  1941. \fIAnnex\ D\fR 
  1942.  
  1943. \(em
  1944.  
  1945. Packet layer DCE time\(hyouts and DTE time\(hylimits
  1946.  
  1947. .LP
  1948.  
  1949.  
  1950.  
  1951. \fIAnnex\ E\fR 
  1952.  
  1953. \(em
  1954.  
  1955. Coding of X.25 network generated
  1956.  
  1957. diagnostic fields in clear, reset and restart indication,
  1958.  
  1959. registration confirmation, and diagnostic packets
  1960.  
  1961. .LP
  1962.  
  1963. \fIAnnex\ F\fR 
  1964.  
  1965. \(em
  1966.  
  1967. Applicability of the on\(hyline registration facility
  1968.  
  1969. to other facilities
  1970.  
  1971. .LP
  1972.  
  1973. \fIAnnex\ G\fR 
  1974.  
  1975. \(em
  1976.  
  1977. CCITT\(hyspecified DTE facilities to support the
  1978.  
  1979. OSI Network service
  1980.  
  1981. .LP
  1982.  
  1983. \fIAnnex\ H\fR 
  1984.  
  1985. \(em
  1986.  
  1987. Subscription\(hytime optional user facilities that may be
  1988.  
  1989. associated with a network user identifier in conjunction with the NUI
  1990.  
  1991. override facility
  1992.  
  1993. .LP
  1994.  
  1995. \fIAppendix\ I\fR 
  1996.  
  1997. \(em
  1998.  
  1999. Examples of data link layer transmitted bit patterns by   the DCE and the DTE
  2000.  
  2001. .LP
  2002.  
  2003. \fIAppendix\ II\fR 
  2004.  
  2005. \(em
  2006.  
  2007. An explanation of how the values for N1 in \(sc 2.4.8.5 are derived
  2008.  
  2009. .LP
  2010.  
  2011. \fIAppendix\ III\fR 
  2012.  
  2013. \(em
  2014.  
  2015. Examples of multilink resetting procedures
  2016.  
  2017. .LP
  2018.  
  2019.  
  2020.  
  2021. \fIAppendix\ IV\fR 
  2022.  
  2023. \(em
  2024.  
  2025. Information on addresses in call set\(hyup and clearing
  2026.  
  2027. packets
  2028.  
  2029. .LP
  2030.  
  2031. \fB1\fR 
  2032.  
  2033. \fBDTE/DCE interface characteristics\fR 
  2034.  
  2035. \fB(physical layer)\fR 
  2036.  
  2037. .LP
  2038.  
  2039.  
  2040.  
  2041. Administrations may offer one or more of the interfaces specified below. 
  2042. The exact use of the relevant points in these Recommendations is 
  2043.  
  2044. detailed below.
  2045.  
  2046. .LP
  2047.  
  2048. 1.1
  2049.  
  2050. \fIX.21 interface\fR 
  2051.  
  2052. .LP
  2053.  
  2054. 1.1.1
  2055.  
  2056. \fIDTE/DCE physical interface elements\fR 
  2057.  
  2058. .LP
  2059.  
  2060. The DTE/DCE physical interface elements shall be according to
  2061.  
  2062. \(sc\(sc\ 2.1 through\ 2.5 of Recommendation\ X.21.
  2063.  
  2064. .LP
  2065.  
  2066. 1.1.2
  2067.  
  2068. \fIProcedures for entering operational phases\fR 
  2069.  
  2070. .LP
  2071.  
  2072. The procedures for entering operational phases shall be as
  2073.  
  2074. described in \(sc\ 5.2 of Recommendation\ X.21. The data exchanged on circuits\ 
  2075.  
  2076. and\ R when the interface is in states\ 13S, 13R and\ 13 of Figure A\(hy3/X.21 
  2077. will be as described in subsequent sections of this Recommendation. 
  2078.  
  2079. .LP
  2080.  
  2081. The \fInot ready\fR 
  2082.  
  2083. \| states given in \(sc\ 2.5 of Recommendation X.21 are
  2084.  
  2085. considered to be \fInon\(hyoperational\fR 
  2086.  
  2087. states and may be considered by the higher   layers to be \fIout of order\fR 
  2088.  
  2089. states (see \(sc\ 4.6 below).
  2090.  
  2091. .LP
  2092.  
  2093. 1.1.3
  2094.  
  2095. \fIFailure detection and test loops\fR 
  2096.  
  2097. .LP
  2098.  
  2099. The failure detection principles shall be according to \(sc\ 2.6 of
  2100.  
  2101. Recommendation\ X.21. In addition, i\ =\ OFF may be signalled due to momentary
  2102.  
  2103. transmission failures. Higher layers may delay for several seconds before
  2104.  
  2105. considering the interface to be out of order.
  2106.  
  2107. .LP
  2108.  
  2109. The definitions of test loops and the principles of maintenance
  2110.  
  2111. testing using the test loops are provided in Recommendation\ X.150.
  2112.  
  2113. .LP
  2114.  
  2115. A description of the test loops and the procedures for their use is
  2116.  
  2117. given in \(sc\ 7 of Recommendation\ X.21.
  2118.  
  2119. .LP
  2120.  
  2121.  
  2122.  
  2123. Automatic activation by a DTE of a test loop\ 2 in the DCE at the
  2124.  
  2125. remote terminal is not possible. However, some Administrations may permit 
  2126. the DTE to control the equivalent of a test loop\ 2, at the local DSE, 
  2127. to verify the operation of the leased line or subscriber line and/or all 
  2128. or part of the DCE or line terminating equipment. Control of the loop, 
  2129. if provided, may be either manual or automatic, as described in Recommendations\ 
  2130. X.150 and\ X.21 
  2131.  
  2132. respectively.
  2133.  
  2134. .LP
  2135.  
  2136. 1.1.4
  2137.  
  2138. \fISignal element timing\fR 
  2139.  
  2140. .LP
  2141.  
  2142. Signal element timing shall be in accordance with \(sc\ 2.6.3 of
  2143.  
  2144. Recommendation\ X.21.
  2145.  
  2146. .LP
  2147.  
  2148. 1.2
  2149.  
  2150. \fIX.21\|bis interface\fR 
  2151.  
  2152. .LP
  2153.  
  2154. 1.2.1
  2155.  
  2156. \fIDTE/DCE physical interface elements\fR 
  2157.  
  2158. .LP
  2159.  
  2160. The DTE/DCE physical interface elements shall be according to \(sc\ 1.2 
  2161. of Recommendation\ X.21\|\fIbis\fR 
  2162.  
  2163. .
  2164.  
  2165. .LP
  2166.  
  2167. 1.2.2
  2168.  
  2169. \fIOperational phases\fR 
  2170.  
  2171. .LP
  2172.  
  2173. When circuit 107 is in the ON condition, and circuits\ 105, 106, 108 and 
  2174. 109, if provided, are in the ON condition, data exchange on circuits\ 103 
  2175.  
  2176. and\ 104 will be as described in subsequent sections of this
  2177.  
  2178. Recommendation.
  2179.  
  2180. .LP
  2181.  
  2182.  
  2183.  
  2184. When circuit 107 is in the OFF condition, or any of circuits 105, 106, 
  2185. 108 or\ 109, if provided, are in the OFF condition, this is considered 
  2186. to be in a \fInon\(hyoperational\fR 
  2187.  
  2188.  state, and may be considered by the higher layers to be in an \fIout of 
  2189. order\fR 
  2190.  
  2191. state (see \(sc\ 4.6 below).
  2192.  
  2193. .LP
  2194.  
  2195. 1.2.3
  2196.  
  2197. \fIFailure detection and test loops\fR 
  2198.  
  2199. .LP
  2200.  
  2201. The failure detection principles, the description of test loops and the 
  2202. procedures for their use shall be according to \(sc\(sc\ 3.1 through\ 3.3 
  2203. of 
  2204.  
  2205. Recommendation\ X.21\|\fIbis\fR 
  2206.  
  2207. . In addition, circuits\ 106 and\ 109 may enter the OFF condition due to 
  2208. momentary transmission failures. Higher layers may delay for several seconds 
  2209. before considering the interface to be out of order. 
  2210.  
  2211. .LP
  2212.  
  2213.  
  2214.  
  2215. Automatic activation by a DTE of test loop 2 in the DCE at the remote terminal 
  2216. is not possible. However, some Administrations may permit the DTE to control 
  2217. the equivalent of a test loop\ 2, at the local DSE, to verify the 
  2218.  
  2219. operation of the leased line or subscriber line and/or all or part of the 
  2220. DCE or line terminating equipment. Control of the loop, if provided, may 
  2221. be either manual or automatic, as described in Recommendations\ X.150 and\ 
  2222. X.21\|\fIbis\fR 
  2223.  
  2224.  
  2225.  
  2226. respectively.
  2227.  
  2228. .LP
  2229.  
  2230. 1.2.4
  2231.  
  2232. \fISignal element timing\fR 
  2233.  
  2234. .LP
  2235.  
  2236. Signal element timing shall be in accordance with \(sc\ 3.4 of
  2237.  
  2238. Recommendation\ X.21\|\fIbis\fR 
  2239.  
  2240. .
  2241.  
  2242. .LP
  2243.  
  2244. 1.3
  2245.  
  2246. \fIV\(hySeries interface\fR 
  2247.  
  2248. .LP
  2249.  
  2250. General operation with V\(hySeries modems is as described in \(sc\ 1.2
  2251.  
  2252. above. However, for specific details, particularly related to failure detection 
  2253. principles, loop testing, and the use of circuits\ 107, 109, 113 and\ 114, 
  2254. refer to the appropriate V\(hySeries Recommendations. 
  2255.  
  2256. .LP
  2257.  
  2258. The delay between 105\(hyON and 106\(hyON (when these
  2259.  
  2260. circuits are present) will be more than 10\ ms and less than 1\ s. In addition, 
  2261. circuits\ 106 or\ 109 may enter the OFF condition due to momentary transmission 
  2262. failures or modem retraining. Higher layers may delay for several seconds 
  2263.  
  2264. before considering the interface to be out of order.
  2265.  
  2266. .LP
  2267.  
  2268. 1.4
  2269.  
  2270. \fIX.31 interface\fR 
  2271.  
  2272. .LP
  2273.  
  2274. 1.4.1
  2275.  
  2276. \fIDTE/DCE physical interface\fR 
  2277.  
  2278. .LP
  2279.  
  2280. The DTE/DCE physical interface shall coincide with the R reference point 
  2281. between the DTE and the Terminal Adaptor (TA). The purpose of the TA is 
  2282.  
  2283. to allow the operation of a DTE over an ISDN. The functionalities of such 
  2284. a TA when accessing a packet switched data transmission service through 
  2285.  
  2286. semi\(hypermanent ISDN connection (i.e.,\ a non switched B\(hychannel) 
  2287. are described in \(sc\ 7 of Recommendation\ X.31. 
  2288.  
  2289. .LP
  2290.  
  2291. \fINote\ 1\fR 
  2292.  
  2293. \ \(em\ This type of access is considered a dedicated access to a public 
  2294. switched data transmission service. Non dedicated access to a public 
  2295.  
  2296. switched data transmission service is defined in Recommendations\ X.32
  2297.  
  2298. and\ X.31.
  2299.  
  2300. .LP
  2301.  
  2302. \fINote\ 2\fR 
  2303.  
  2304. \ \(em\ The DTE and the TA functionalities may be implemented in
  2305.  
  2306. the same piece of equipment in the case of a packet mode terminal TE1
  2307.  
  2308. conforming to the I\(hyseries Recommendations. In this case, this
  2309.  
  2310. Recommendation covers layer\ 2 and layer\ 3 operation on the semi\(hypermanent
  2311.  
  2312. B\(hychannel.
  2313.  
  2314. .LP
  2315.  
  2316. 1.4.2
  2317.  
  2318. \fIOperational phases\fR 
  2319.  
  2320. .LP
  2321.  
  2322. The operational phases are as described in \(sc 7 of
  2323.  
  2324. Recommendation\ X.31.
  2325.  
  2326. .LP
  2327.  
  2328. 1.4.3
  2329.  
  2330. \fIMaintenance\fR 
  2331.  
  2332. .LP
  2333.  
  2334.  
  2335.  
  2336. The maintenance shall be made as described in \(sc 7.6 of
  2337.  
  2338. Recommendation\ X.31.
  2339.  
  2340. .LP
  2341.  
  2342. 1.4.4
  2343.  
  2344. \fISynchronization\fR 
  2345.  
  2346. .LP
  2347.  
  2348. The synchronization shall be made as described in \(sc 7 of
  2349.  
  2350. Recommendation\ X.31.
  2351.  
  2352. .LP
  2353.  
  2354. \fB2\fR 
  2355.  
  2356. \fBLink access procedures across the DTE/DCE interface\fR 
  2357.  
  2358. .LP
  2359.  
  2360.  
  2361.  
  2362. 2.1
  2363.  
  2364. \fIScope and field of applications\fR 
  2365.  
  2366. .LP
  2367.  
  2368. 2.1.1 
  2369.  
  2370. The 
  2371.  
  2372. Link Access Procedures
  2373.  
  2374. (LAPB and LAP) are
  2375.  
  2376. described as the 
  2377.  
  2378. Data Link Layer Element
  2379.  
  2380. and are used for data
  2381.  
  2382. interchange
  2383.  
  2384. between a DCE and a DTE over a single physical circuit (LAPB and LAP), or
  2385.  
  2386. optionally over multiple physical circuits (LAPB), operating in user classes 
  2387. of service\ 8 to\ 11 as indicated in Recommendation\ X.1. The optional, 
  2388.  
  2389. subscription\(hytime selectable, multiple physical circuit operation with LAPB
  2390.  
  2391. (known as multilink operation) is required if the effects of circuit failures 
  2392. are not to disrupt the Packet Layer operation. 
  2393.  
  2394. .LP
  2395.  
  2396. The single link procedures (SLPs) described in \(sc\(sc\ 2.2, 2.3
  2397.  
  2398. and\ 2.4 (LAPB) and in \(sc\(sc\ 2.2, 2.6 and 2.7 (LAP) are used for data 
  2399. interchange over a single physical circuit, conforming to the description 
  2400. given in \(sc\ 1, 
  2401.  
  2402. between a DTE and a DCE. When the optional multilink operation is employed 
  2403. with LAPB, a single link procedure (SLP) is used independently on each 
  2404. physical 
  2405.  
  2406. circuit, and the multilink procedure (MLP) described in \(sc\ 2.5 is used for
  2407.  
  2408. data interchange over these multiple parallel LAPB data links. In addition,
  2409.  
  2410. when only a single physical circuit is employed with LAPB, agreements may be
  2411.  
  2412. made with the Administration to use this optional 
  2413.  
  2414. multilink procedure
  2415.  
  2416. over the one LAPB data link.
  2417.  
  2418. .LP
  2419.  
  2420. 2.1.2
  2421.  
  2422. The 
  2423.  
  2424. single link procedures (SLPs)
  2425.  
  2426. use the principles
  2427.  
  2428. and terminology of the High\(hylevel Data Link Control (HDLC) procedures
  2429.  
  2430. specified by the International Organization for Standardization (ISO). The
  2431.  
  2432. multilink pro
  2433.  
  2434. cedure\ (MLP) is based on the principles and terminology of the Multilink 
  2435. Control Procedures specified by ISO. 
  2436.  
  2437. .LP
  2438.  
  2439. 2.1.3
  2440.  
  2441. Each transmission facility is duplex.
  2442.  
  2443. .LP
  2444.  
  2445. 2.1.4
  2446.  
  2447. DCE compatibility of operation with the ISO balanced classes
  2448.  
  2449. of procedure (Class BA with options\ 2, 8 and Class\ BA with options\ 2, 
  2450. 8, 10) is achieved using the LAPB procedure described in \(sc\(sc\ 2.3 
  2451. and\ 2.4. Of these 
  2452.  
  2453. classes, Class\ BA with options\ 2, 8 (LAPB modulo\ 8) is the basic service, 
  2454. and is available in all networks. Class\ BA with options\ 2, 8, 10 (LAPB 
  2455. modulo\ 128) is recognized as an optional, subscription\(hytime selectable, 
  2456. extended sequence numbering service that may be available in those networks 
  2457. wishing to serve DTE applications having a need for modulo\ 128 sequence 
  2458. numbering. 
  2459.  
  2460. .LP
  2461.  
  2462.  
  2463.  
  2464. DTE manufacturers and implementors must be aware that the
  2465.  
  2466. procedure hereunder described as LAPB modulo\ 8 will be the only one available 
  2467. in all networks. 
  2468.  
  2469. .LP
  2470.  
  2471. Likewise, a DTE may continue to use the LAP procedure described in
  2472.  
  2473. \(sc\(sc\ 2.2, 2.6 and\ 2.7 (in those networks supporting such a procedure), 
  2474. but for 
  2475.  
  2476. new
  2477.  
  2478. DTE implementations, LAPB should be preferred. The LAP procedures are defined 
  2479. for modulo\ 8 basic service only. 
  2480.  
  2481. .LP
  2482.  
  2483. \fINote\fR 
  2484.  
  2485. \ \(em\ Other possible applications for further study are, for
  2486.  
  2487. example:
  2488.  
  2489. .LP
  2490.  
  2491. \(em
  2492.  
  2493. two\(hyway alternate, asynchronous response mode;
  2494.  
  2495. .LP
  2496.  
  2497. \(em
  2498.  
  2499. two\(hyway simultaneous, normal response mode;
  2500.  
  2501. .LP
  2502.  
  2503. \(em
  2504.  
  2505. two\(hyway alternate, normal response mode.
  2506.  
  2507. .LP
  2508.  
  2509.  
  2510.  
  2511. 2.1.5
  2512.  
  2513. For those networks that choose to support both the basic and
  2514.  
  2515. extended LAPB sequence numbering services, the choice of either basic mode
  2516.  
  2517. (modulo\ 8) or extended mode (modulo\ 128) may be made at subscription 
  2518. time. The choice of the mode employed for each data link procedure is independent 
  2519. of all others and of the choice of mode for the corresponding Packet Layer 
  2520. procedures. All choices are matters for agreement for a period of time 
  2521. with the 
  2522.  
  2523. Administration.
  2524.  
  2525. .LP
  2526.  
  2527. 2.1.6
  2528.  
  2529. In the case of those networks that support both the LAPB procedure and 
  2530. the LAP procedure, the DCE will maintain an internal mode variable\ B, 
  2531. which it will set as follows: 
  2532.  
  2533. .LP
  2534.  
  2535. \(em
  2536.  
  2537. to 1, upon acceptance of an SABM/SABME (modulo 8/modulo\ 128)
  2538.  
  2539. command from the DTE, or upon issuance of an SABM/SABME command
  2540.  
  2541. by the DCE;
  2542.  
  2543. .LP
  2544.  
  2545. \(em
  2546.  
  2547. to 0, upon acceptance of an SARM command from the DTE.
  2548.  
  2549. .LP
  2550.  
  2551.  
  2552.  
  2553. Whenever B is 1, the DCE will use the LAPB procedure described in \(sc\(sc\ 
  2554. 2.2, 2.3 and 2.4 below, and is said to be in the LAPB (balanced) mode. 
  2555.  
  2556. .LP
  2557.  
  2558.  
  2559.  
  2560. Whenever B is 0, the DCE will use the LAP procedure described in
  2561.  
  2562. \(sc\(sc\ 2.2, 2.6 and 2.7 below, and is said to be in the LAP mode.
  2563.  
  2564. .LP
  2565.  
  2566. Changes to the mode variable B by the DTE should occur only when the data 
  2567. link has been disconnected as described in \(sc\(sc\ 2.4.4.3 or\ 2.7.3.3 
  2568. below. 
  2569.  
  2570. .LP
  2571.  
  2572.  
  2573.  
  2574. Should a DCE malfunction occur that negates the current setting of
  2575.  
  2576. internal mode variable\ B, the DCE will, upon restoration of operation, 
  2577. not send either a SARM or SABM/SABME command. The DCE may send a DISC command 
  2578. or a 
  2579.  
  2580. DM\ response to notify the DTE that the DCE is in the disconnected phase. 
  2581. This will result in the DTE attempting to reinitialize the data link with 
  2582. what the DTE 
  2583.  
  2584. considers to be the proper mode\(hysetting command (SARM or SABM/SABME). 
  2585. The DCE will then be able to set the internal mode variable\ B to its proper 
  2586.  
  2587. value.
  2588.  
  2589. .LP
  2590.  
  2591. 2.2
  2592.  
  2593. \fIFrame structure\fR 
  2594.  
  2595. .LP
  2596.  
  2597. 2.2.1
  2598.  
  2599. All transmissions on an SLP are in frames conforming to one of the formats 
  2600. of Table\ 1/X.25 for basic (modulo\ 8) operation, or alternatively one 
  2601. of the formats of Table\ 2/X.25 for extended (modulo\ 128) operation. The 
  2602. flag 
  2603.  
  2604. preceding the address field is defined as the opening flag. The flag following 
  2605. the FCS field is defined as the closing flag. 
  2606.  
  2607. .LP
  2608.  
  2609. .LP
  2610.  
  2611. \fBTable 1/X.25 [T1.25], p.\fR 
  2612.  
  2613. .LP
  2614.  
  2615. \fBTable 2/X.25 [T2.25], p.\fR 
  2616.  
  2617. 2.2.2
  2618.  
  2619. \fIFlag sequence\fR 
  2620.  
  2621. .LP
  2622.  
  2623. All frames shall start and end with the flag sequence consisting of one 
  2624. 0\ bit followed by six contiguous 1\ bits and one 0\ bit. The DTE and DCE 
  2625.  
  2626. shall only send complete eight\(hybit flag sequences when sending multiple flag
  2627.  
  2628. sequences (see \(sc\ 2.2.11). A single flag may be used as both the 
  2629.  
  2630. closing
  2631.  
  2632. flag
  2633.  
  2634. for one frame and the 
  2635.  
  2636. opening flag
  2637.  
  2638. for the next frame.
  2639.  
  2640. .LP
  2641.  
  2642. 2.2.3
  2643.  
  2644. \fIAddress field\fR 
  2645.  
  2646. .LP
  2647.  
  2648. The address field shall consist of one octet. The address field
  2649.  
  2650. identifies the intended receiver of a command frame and the transmitter of a
  2651.  
  2652. response frame. The coding of the address field is described in \(sc\ 2.4.2 
  2653. (LAPB) and in \(sc\ 2.7.1 (LAP) below. 
  2654.  
  2655. .LP
  2656.  
  2657. 2.2.4
  2658.  
  2659. \fIControl field\fR 
  2660.  
  2661. .LP
  2662.  
  2663. For modulo\ 8 (basic) operation, the control field shall consist of one 
  2664. octet. For modulo\ 128 (extended) operation, the control field shall consist 
  2665. of two octets for frame formats that contain sequence numbers, and one 
  2666. octet 
  2667.  
  2668. for frame formats that do not contain sequence numbers. The content of this
  2669.  
  2670. field is described in \(sc\ 2.3.2\ (LAPB) and in \(sc\ 2.6.2 (LAP) below.
  2671.  
  2672. .LP
  2673.  
  2674. 2.2.5
  2675.  
  2676. \fIInformation field\fR 
  2677.  
  2678. .LP
  2679.  
  2680. The information field of a frame, when present, follows the control field 
  2681. (see \(sc\ 2.2.4 above) and precedes the 
  2682.  
  2683. frame check sequence field
  2684.  
  2685. (see \(sc\ 2.2.7 below).
  2686.  
  2687. .LP
  2688.  
  2689. See \(sc\(sc 2.3.4.9, 2.5.2, 2.6.4.8 and 5 for the various codings and
  2690.  
  2691. groupings of bits in the information field as used in this Recommendation.
  2692.  
  2693. .LP
  2694.  
  2695.  
  2696.  
  2697. See \(sc\(sc 2.3.4.9, 2.4.8.5, 2.6.4.8 and 2.7.7.5 below with regard to 
  2698. the maximum information field length. 
  2699.  
  2700. .LP
  2701.  
  2702. 2.2.6
  2703.  
  2704. \fITransparency\fR 
  2705.  
  2706. .LP
  2707.  
  2708. The DCE or DTE, when transmitting, shall examine the frame content between 
  2709. the two flag sequences including the address, control, information and 
  2710. FCS fields and shall insert a 0 bit after all sequences of 5 contiguous 
  2711. 1\ bits (including the last 5\ bits of the FCS) to ensure that a flag sequence 
  2712. is not 
  2713.  
  2714. simulated. The DCE or DTE, when receiving, shall examine the frame content 
  2715. and shall discard any 0\ bit which directly follows\ 5 contiguous 1\ bits. 
  2716.  
  2717. .LP
  2718.  
  2719. 2.2.7
  2720.  
  2721. \fIFrame check sequence (FCS)\fR 
  2722.  
  2723. \fI field\fR 
  2724.  
  2725. .LP
  2726.  
  2727. The notation used to describe the FCS is based on the property of cyclic 
  2728. codes that a code vector such as 1000000100001 can be represented by a 
  2729. polynomial \fIP\fR 
  2730.  
  2731. (\fIx\fR 
  2732.  
  2733. )\ =\ \fIx\fR 
  2734.  
  2735. \u1\d\u2\d\ +\ \fIx\fR 
  2736.  
  2737. \u5\d\ +\ 1. The elements of an \fIn\fR 
  2738.  
  2739. \(hyelement
  2740.  
  2741. code word are thus the coefficients of a polynomial of order \fIn\fR 
  2742.  
  2743. \ \(em\ 1. In this application, these coefficients can have the value\ 
  2744. 0 or\ 1 and the polynomial 
  2745.  
  2746. operations are performed modulo\ 2. The polynomial representing the content 
  2747. of a frame is generated using the first bit received after the frame opening 
  2748. flag as the coefficient of the highest order term. 
  2749.  
  2750. .LP
  2751.  
  2752. The FCS field shall be a 16\(hybit sequence. It shall be the ones
  2753.  
  2754. complement of the sum (modulo\ 2) of:
  2755.  
  2756. .LP
  2757.  
  2758. 1)
  2759.  
  2760. the remainder of
  2761.  
  2762. \fIx\fR 
  2763.  
  2764. \uD\dlFk\fR 
  2765.  
  2766. (\fIx\fR 
  2767.  
  2768. \u1\d\u5\d\uD\dlF036+\ \fIx\fR 
  2769.  
  2770. \u1\d\u4\d\ +\ \fIx\fR 
  2771.  
  2772. \u1\d\u3\d\ +
  2773.  
  2774. \fIx\fR 
  2775.  
  2776. \u1\d\u2\d\ +\ \fIx\fR 
  2777.  
  2778. \u1\d\u1\d\ +\ \fIx\fR 
  2779.  
  2780. \u1\d\u0\d\ +\ \fIx\fR 
  2781.  
  2782. \u9\d\ +\ \fIx\fR 
  2783.  
  2784. \u8\d\ +
  2785.  
  2786. \fIx\fR 
  2787.  
  2788. \u7\d\ +\ \fIx\fR 
  2789.  
  2790. \u6\d\ +\ \fIx\fR 
  2791.  
  2792. \u5\d\ +\ \fIx\fR 
  2793.  
  2794. \u4\d\uD\dlF036+\ \fIx\fR 
  2795.  
  2796. \u3\d\ +
  2797.  
  2798. +\ \fIx\fR 
  2799.  
  2800. \u2\d\ +\ \fIx\fR 
  2801.  
  2802. \ +\ 1) divided (modulo\ 2)
  2803.  
  2804. by the
  2805.  
  2806. generator polynomial \fIx\fR 
  2807.  
  2808. \u1\d\u6\d\ +\ \fIx\fR 
  2809.  
  2810. \u1\d\u2\d\ +\ \fIx\fR 
  2811.  
  2812. \u5\d\ +\ 1,
  2813.  
  2814. where \fIk\fR 
  2815.  
  2816. is the number of bits in the frame existing between,
  2817.  
  2818. but not including, the final bit of the opening flag and the
  2819.  
  2820. first bit of the FCS, excluding bits inserted for transparency,
  2821.  
  2822. and
  2823.  
  2824. .LP
  2825.  
  2826. 2)
  2827.  
  2828. the remainder of the division (modulo 2) by the generator
  2829.  
  2830. polynomial \fIx\fR 
  2831.  
  2832. \u1\d\u6\d\ +\ \fIx\fR 
  2833.  
  2834. \u1\d\u2\d\ +\ \fIx\fR 
  2835.  
  2836. \u5\d\ +\ 1 of the
  2837.  
  2838. product of \fIx\fR 
  2839.  
  2840. \u1\d\u6\d by the content of the frame, existing
  2841.  
  2842. between but not including, the final bit of the opening flag and
  2843.  
  2844. the first bit of the FCS, excluding bits inserted for
  2845.  
  2846. transparency.
  2847.  
  2848. .LP
  2849.  
  2850.  
  2851.  
  2852. As a typical implementation, at the transmitter, the initial
  2853.  
  2854. content of the register of the device computing the remainder of the division 
  2855. is preset to all 1s and is then modified by division by the generator 
  2856.  
  2857. polynomial (as described above) on the address, control and information 
  2858. fields; the ones complement of the resulting remainder is transmitted as 
  2859. the 16\(hybit 
  2860.  
  2861. FCS.
  2862.  
  2863. .LP
  2864.  
  2865. At the receiver, the initial content of the register of the device
  2866.  
  2867. computing the remainder is preset to all 1s. The final remainder, after
  2868.  
  2869. multiplication by \fIx\fR 
  2870.  
  2871. \u1\d\u6\d and then division (modulo\ 2) by the generator
  2872.  
  2873. polynomial \fIx\fR 
  2874.  
  2875. \u1\d\u6\d\ +\ \fIx\fR 
  2876.  
  2877. \u1\d\u2\d\ +\ \fIx\fR 
  2878.  
  2879. \u5\d\ +\ 1 of the serial incoming protected bits and the FCS, will be 
  2880. 0001110100001111 (\fIx\fR 
  2881.  
  2882. \u1\d\u5\d through
  2883.  
  2884. \fIx\fR 
  2885.  
  2886. \u0\d, respectively) in the absence of transmission errors.
  2887.  
  2888. .LP
  2889.  
  2890. \fINote\fR 
  2891.  
  2892. \ \(em\ Examples of transmitted bit patterns by the DCE and the DTE illustrating 
  2893. application of the transparency mechanism and the frame check 
  2894.  
  2895. sequence to the SABM command and the UA response are given in Appendix\ I.
  2896.  
  2897. .LP
  2898.  
  2899. 2.2.8
  2900.  
  2901. \fIOrder of bit transmission\fR 
  2902.  
  2903. .LP
  2904.  
  2905. Addresses, commands, responses and sequence numbers shall be
  2906.  
  2907. transmitted with the low\(hyorder bit first (for example, the first bit of the
  2908.  
  2909. sequence number that is transmitted shall have the weight 2\u0\d). The 
  2910. order of transmitting bits within the information field is not specified 
  2911. under \(sc\ 2 of 
  2912.  
  2913. this Recommendation. The FCS shall be transmitted to the line commencing 
  2914. with the coefficient of the highest term, which is found in bit position\ 
  2915. 16 of the FCS\ field (see Tables\ 1/X.25 and 2/X.25). 
  2916.  
  2917. .LP
  2918.  
  2919. \fINote\fR 
  2920.  
  2921. \ \(em\ In Tables 1/X.25 to 13/X.25, bit 1 is defined as the
  2922.  
  2923. low\(hyorder bit.
  2924.  
  2925. .LP
  2926.  
  2927. 2.2.9
  2928.  
  2929. \fIInvalid frames\fR 
  2930.  
  2931. .LP
  2932.  
  2933. The definition of an invalid frame is described in \(sc\ 2.3.5.3 (LAPB) 
  2934. and in \(sc\ 2.6.5.3 (LAP) below. 
  2935.  
  2936. .LP
  2937.  
  2938. 2.2.10
  2939.  
  2940. \fIFrame abortion\fR 
  2941.  
  2942. .LP
  2943.  
  2944. Aborting a frame is performed by transmitting at least seven
  2945.  
  2946. contiguous 1\ bits (with no inserted 0\ bits).
  2947.  
  2948. .LP
  2949.  
  2950. 2.2.11
  2951.  
  2952. \fIInterframe time fill\fR 
  2953.  
  2954. .LP
  2955.  
  2956. Interframe time fill is accomplished by transmitting contiguous
  2957.  
  2958. flags between frames, i.e.\ multiple eight\(hybit flag sequences (see
  2959.  
  2960. \(sc\ 2.2.2).
  2961.  
  2962. .LP
  2963.  
  2964. 2.2.12
  2965.  
  2966. \fILink channel states\fR 
  2967.  
  2968. .LP
  2969.  
  2970. A link channel as defined here is the means for transmission for
  2971.  
  2972. one direction.
  2973.  
  2974. .LP
  2975.  
  2976. 2.2.12.1
  2977.  
  2978. \fIActive channel state\fR 
  2979.  
  2980. .LP
  2981.  
  2982. The DCE incoming or outgoing channel is defined to be in an active condition 
  2983. when it is receiving or transmitting, respectively, a frame, an 
  2984.  
  2985. abortion sequence or interframe time fill.
  2986.  
  2987. .LP
  2988.  
  2989. 2.2.12.2
  2990.  
  2991. \fIIdle channel state\fR 
  2992.  
  2993. .LP
  2994.  
  2995. The DCE incoming or outgoing channel is defined to be in an idle
  2996.  
  2997. condition when it is receiving or transmitting, respectively, a continuous\ 
  2998. 1s state for a period of at least 15\ bit times. 
  2999.  
  3000. .LP
  3001.  
  3002. See \(sc\ 2.3.5.5 for a description of DCE action when an idle condition 
  3003. exists on its incoming channel for an excessive period of time. 
  3004.  
  3005. .LP
  3006.  
  3007.  
  3008.  
  3009. 2.3
  3010.  
  3011. \fILAPB elements of procedures\fR 
  3012.  
  3013. .LP
  3014.  
  3015. 2.3.1
  3016.  
  3017. The LAPB elements of procedures are defined in terms of actions
  3018.  
  3019. that occur on receipt of frames at the DCE or\ DTE.
  3020.  
  3021. .LP
  3022.  
  3023. The elements of procedures specified below contain the selection
  3024.  
  3025. of commands and responses relevant to the LAPB data link and system
  3026.  
  3027. configurations
  3028.  
  3029. described in \(sc\ 2.1 above. Together, \(sc\(sc\ 2.2 and 2.3 form the general
  3030.  
  3031. requirements for the proper management of a LAPB access data link.
  3032.  
  3033. .LP
  3034.  
  3035.  
  3036.  
  3037. 2.3.2
  3038.  
  3039. \fILAPB control field formats and parameters\fR 
  3040.  
  3041. .LP
  3042.  
  3043.  
  3044.  
  3045. 2.3.2.1
  3046.  
  3047. \fIControl field formats\fR 
  3048.  
  3049. .LP
  3050.  
  3051. The control field contains a command or a response, and sequence
  3052.  
  3053. numbers where applicable.
  3054.  
  3055. .LP
  3056.  
  3057. Three types of control field formats are used to perform numbered
  3058.  
  3059. information transfer (I\ format), numbered supervisory functions (S\ format) 
  3060. and unnumbered control functions (U\ format). 
  3061.  
  3062. .LP
  3063.  
  3064. The control field formats for basic (modulo\ 8) operation are depicted 
  3065. in Table\ 3/X.25. 
  3066.  
  3067. .LP
  3068.  
  3069.  
  3070.  
  3071. The control field formats for extended (modulo 128) operation are
  3072.  
  3073. depicted in Table\ 4/X.25.
  3074.  
  3075. .LP
  3076.  
  3077. .LP
  3078.  
  3079. \fBTable 3/X.25 [T3.25], p.\fR 
  3080.  
  3081. .LP
  3082.  
  3083. \fBTable 4/X.25 [T4/X.25], p.\fR 
  3084.  
  3085. 2.3.2.1.1
  3086.  
  3087. \fIInformation transfer format\fR 
  3088.  
  3089. \fI \(em I\fR 
  3090.  
  3091. .LP
  3092.  
  3093. The I format is used to perform an information transfer. The
  3094.  
  3095. functions of N(S), N(R) and P are independent; i.e.,\ each I\ frame has 
  3096. an N(S), an N(R) which may or may not acknowledge additional I\ frames 
  3097. received by the 
  3098.  
  3099. DCE or DTE, and a P\ bit that may be set to\ 0 or\ 1.
  3100.  
  3101. .LP
  3102.  
  3103. 2.3.2.1.2
  3104.  
  3105. \fISupervisory format\fR 
  3106.  
  3107. \fI \(em S\fR 
  3108.  
  3109. .LP
  3110.  
  3111. The S format is used to perform data link supervisory control
  3112.  
  3113. functions such as acknowledge I\ frames, request retransmission of I\ frames, 
  3114. and to request a temporary suspension of transmission of I\ frames. The 
  3115. functions of N(R) and P/F are independent; i.e.,\ each supervisory frame 
  3116. has an N(R) which 
  3117.  
  3118. may or may not acknowledge additional I\ frames received by the DCE or\ 
  3119. DTE, and a P/F\ bit that may be set to\ 0 or\ 1. 
  3120.  
  3121. .LP
  3122.  
  3123. 2.3.2.1.3
  3124.  
  3125. \fIUnnumbered format\fR 
  3126.  
  3127. \fI \(em U\fR 
  3128.  
  3129. .LP
  3130.  
  3131. The U format is used to provide additional data link control
  3132.  
  3133. functions. This format contains no sequence numbers, but does include a 
  3134. P/F\ bit that may be set to\ 0 or\ 1. The unnumbered frames have the same 
  3135. control field 
  3136.  
  3137. length (one octet) in both basic (modulo\ 8) operation and extended (modulo\ 
  3138. 128) operation. 
  3139.  
  3140. .LP
  3141.  
  3142. 2.3.2.2
  3143.  
  3144. \fIControl field parameters\fR 
  3145.  
  3146. .LP
  3147.  
  3148. The various parameters associated with the control field formats
  3149.  
  3150. are described below.
  3151.  
  3152. .LP
  3153.  
  3154. 2.3.2.2.1
  3155.  
  3156. \fIModulus\fR 
  3157.  
  3158. .LP
  3159.  
  3160. Each I frame is sequentially numbered and may have the value\ 0
  3161.  
  3162. through modulus minus\ 1 (where \*Qmodulus\*U is the modulus of the sequence
  3163.  
  3164. numbers). The modulus equals either\ 8 or\ 128 and the sequence numbers cycle
  3165.  
  3166. through the entire range.
  3167.  
  3168. .LP
  3169.  
  3170. 2.3.2.2.2
  3171.  
  3172. \fISend state variable\fR 
  3173.  
  3174. \fI V(S)\fR 
  3175.  
  3176. .LP
  3177.  
  3178. The send state variable V(S) denotes the sequence number of the
  3179.  
  3180. next in\(hysequence I\ frame to be transmitted. V(S) can take on the values\ 0
  3181.  
  3182. through modulus minus\ 1. The value of V(S) is incremented by\ 1 with each
  3183.  
  3184. successive I\ frame transmission, but cannot exceed the N(R) of the last
  3185.  
  3186. received\ I or supervisory frame by more than the maximum number of outstanding 
  3187. I\ frames\ (\fIk\fR 
  3188.  
  3189. ). The value of\ k is defined in \(sc\ 2.4.8.6 below.
  3190.  
  3191. .LP
  3192.  
  3193.  
  3194.  
  3195. 2.3.2.2.3
  3196.  
  3197. \fISend sequence number\fR 
  3198.  
  3199. \fI N(S)\fR 
  3200.  
  3201. .LP
  3202.  
  3203. Only I frames contain N(S), the send sequence number of transmitted I\ 
  3204. frames. At the time that an in\(hysequence I\ frame is designated for 
  3205.  
  3206. transmission, the value of N(S) is set equal to the value of the send state
  3207.  
  3208. variable\ V(S).
  3209.  
  3210. .LP
  3211.  
  3212. 2.3.2.2.4
  3213.  
  3214. \fIReceive state variable\fR 
  3215.  
  3216. \fIV(R)\fR 
  3217.  
  3218. .LP
  3219.  
  3220. The receive state variable V(R) denotes the sequence number of the next 
  3221. in\(hysequence I\ frame expected to be received. V(R) can take on the values 
  3222. 0 through modulus minus\ 1. The value of V(R) is incremented by\ 1 by the 
  3223. receipt of an error\(hyfree, in\(hysequence I\ frame whose send sequence 
  3224. number N(S) equals 
  3225.  
  3226. the receive state variable V(R).
  3227.  
  3228. .LP
  3229.  
  3230. 2.3.2.2.5
  3231.  
  3232. \fIReceive sequence number\fR 
  3233.  
  3234. \fI N(R)\fR 
  3235.  
  3236. .LP
  3237.  
  3238. All I frames and supervisory frames contain N(R), the expected send sequence 
  3239. number of the next received I\ frame. At the time that a frame of the above 
  3240. types is designated for transmission, the value of N(R) is set equal to 
  3241. the current value of the receive state variable V(R). N(R) indicates that 
  3242. the DCE or DTE transmitting the N(R) has received correctly all I\ frames 
  3243. numbered up to and including N(R)\ \(em\ 1. 
  3244.  
  3245. .LP
  3246.  
  3247. 2.3.2.2.6
  3248.  
  3249. \fIPoll/Final bit\fR 
  3250.  
  3251. \fI P/F\fR 
  3252.  
  3253. .LP
  3254.  
  3255. All frames contain P/F, the Poll/Final bit. In command frames, the P/F 
  3256. bit is referred to as the P bit. In response frames, it is referred to 
  3257. as the F\ bit. 
  3258.  
  3259. .LP
  3260.  
  3261. 2.3.3
  3262.  
  3263. \fIFunctions of the Poll/Final bit\fR 
  3264.  
  3265. .LP
  3266.  
  3267. The Poll bit set to 1 is used by the DCE or DTE to solicit (poll) a response 
  3268. from the DTE or DCE, respectively. The Final bit set to\ 1 is used by the 
  3269. DCE or DTE to indicate the response frame transmitted by the DTE or DCE, 
  3270.  
  3271. respectively, as a result of the soliciting (poll) command.
  3272.  
  3273. .LP
  3274.  
  3275. The use of the P/F bit is described in \(sc\ 2.4.3 below.
  3276.  
  3277. .LP
  3278.  
  3279. 2.3.4
  3280.  
  3281. \fICommands and responses\fR 
  3282.  
  3283. .LP
  3284.  
  3285. For basic (modulo 8) operation, the commands and responses
  3286.  
  3287. represented in Table\ 5/X.25 will be supported by the DCE and the\ DTE.
  3288.  
  3289. .LP
  3290.  
  3291.  
  3292.  
  3293. For extended (modulo 128) operation, the commands and responses
  3294.  
  3295. represented in Table\ 6/X.25 will be supported by the DCE and the DTE.
  3296.  
  3297. .LP
  3298.  
  3299.  
  3300.  
  3301. For purposes of the LAPB procedures, the supervisory function bit encoding 
  3302. \*Q11\*U and those encodings of the modifier function bits in 
  3303.  
  3304. Tables\ 3/X.25 and 4/X.25 not identified in Tables\ 5/X.25 or 6/X.25 are
  3305.  
  3306. identified as \*Qundefined or not implemented\*U command and response control
  3307.  
  3308. fields.
  3309.  
  3310. .LP
  3311.  
  3312. The commands and responses in Tables 5/X.25 and 6/X.25 are defined as  follows:
  3313.  
  3314. .LP
  3315.  
  3316. 2.3.4.1
  3317.  
  3318. \fIInformation (I)\fR 
  3319.  
  3320. \fI command\fR 
  3321.  
  3322. .LP
  3323.  
  3324. The function of the information (I) command is to transfer across a data 
  3325. link a sequentially numbered frame containing an information field. 
  3326.  
  3327. .LP
  3328.  
  3329. .LP
  3330.  
  3331. \fBTable 5/X.25 [T5.25], p.\fR 
  3332.  
  3333. .LP
  3334.  
  3335. \fBTable 6/X.25 [T6.25], p.\fR 
  3336.  
  3337. 2.3.4.2
  3338.  
  3339. \fIReceive ready (RR)\fR 
  3340.  
  3341. \fI command and response\fR 
  3342.  
  3343. .LP
  3344.  
  3345. The receive ready (RR) supervisory frame is used by the DCE
  3346.  
  3347. or DTE to:
  3348.  
  3349. .LP
  3350.  
  3351.  
  3352.  
  3353. 1)
  3354.  
  3355. indicate it is ready to receive an I frame; and
  3356.  
  3357. .LP
  3358.  
  3359. 2)
  3360.  
  3361. acknowledge previously received I frames numbered up to and
  3362.  
  3363. including N(R)\ \(em\ 1.
  3364.  
  3365. .LP
  3366.  
  3367. An RR frame may be used to indicate the clearance of a busy
  3368.  
  3369. condition that was reported by the earlier transmission of an RNR frame 
  3370. by that same station (DCE or\ DTE). In addition to indicating the DCE or 
  3371. DTE status, the RR command with the P\ bit set to\ 1 may be used by the 
  3372. DCE or DTE to ask for the status of the DTE or DCE, respectively. 
  3373.  
  3374. .LP
  3375.  
  3376. 2.3.4.3
  3377.  
  3378. \fIReceive not ready (RNR) command and response\fR 
  3379.  
  3380. .LP
  3381.  
  3382. The receive not ready (RNR) supervisory frame is used by the DCE or DTE 
  3383. to indicate a busy condition; i.e.\ temporary inability to accept 
  3384.  
  3385. additional incoming I\ frames. I\ frames numbered up to and including N(R)\ 
  3386. \(em\ 1 
  3387.  
  3388. are acknowledged. I\ frame N(R) and any subsequent I\ frames received, if any,
  3389.  
  3390. are not acknowledged; the acceptance status of these I\ frames will be 
  3391. indicated in subsequent exchanges. 
  3392.  
  3393. .LP
  3394.  
  3395. In addition to indicating the DCE or DTE status, the RNR command with the 
  3396. P bit set to\ 1 may be used by an DCE or DTE to ask for the status of the 
  3397.  
  3398. DTE or DCE, respectively.
  3399.  
  3400. .LP
  3401.  
  3402. 2.3.4.4
  3403.  
  3404. \fIReject (REJ) command and response\fR 
  3405.  
  3406. .LP
  3407.  
  3408. The reject (REJ) supervisory frame is used by the DCE or DTE to request 
  3409. transmission of I\ frames starting with the frame numbered N(R). 
  3410.  
  3411. I\ frames numbered N(R)\ \(em\ 1 and below are acknowledged. Additional 
  3412. I\ frames 
  3413.  
  3414. pending initial transmission may be transmitted following the retransmitted
  3415.  
  3416. I\ frame(s).
  3417.  
  3418. .LP
  3419.  
  3420.  
  3421.  
  3422. Only one REJ exception condition for a given direction of information transfer 
  3423. may be established at any time. The REJ exception condition is cleared 
  3424. (reset) upon the receipt of an I\ frame with an N(S) equal to the N(R) 
  3425. of the 
  3426.  
  3427. REJ\ frame.
  3428.  
  3429. .LP
  3430.  
  3431. An REJ frame may be used to indicate the clearance of a busy condition 
  3432. that was reported by the earlier transmission of an RNR frame by that same 
  3433.  
  3434. station (DCE or\ DTE). In addition to indicating the DCE or DTE status, the
  3435.  
  3436. REJ\ command with the P bit set to\ 1 may be used by the DCE or\ DTE to ask for
  3437.  
  3438. the status of the DTE or\ DCE, respectively.
  3439.  
  3440. .LP
  3441.  
  3442. \fR 
  3443.  
  3444. 2.3.4.5
  3445.  
  3446. \fISet asynchronous balanced mode (SABM)\fR 
  3447.  
  3448. \fIcommand/\fR 
  3449.  
  3450. \fISet asynchronous balanced mode extended (SABME)\fR 
  3451.  
  3452.  
  3453.  
  3454. \fIcommand (subscription time option)\fR 
  3455.  
  3456. .LP
  3457.  
  3458.  
  3459.  
  3460. The SABM unnumbered command is used to place the addressed DCE or DTE in 
  3461. an asynchronous balanced mode (ABM) information transfer phase where all 
  3462. command/response control fields will be one\ octet in length. 
  3463.  
  3464. .LP
  3465.  
  3466. The SABME unnumbered command is used to place the addressed DCE or DTE 
  3467. in an asynchronous balanced mode\ (ABM) information transfer phase where 
  3468.  
  3469. numbered command/response control fields will be two octets in length, and
  3470.  
  3471. unnumbered command/response control fields will be one octet in length.
  3472.  
  3473. .LP
  3474.  
  3475.  
  3476.  
  3477. No information field is permitted with the SABM or SABME command. The transmission 
  3478. of a SABM/SABME command indicates the clearance of a busy 
  3479.  
  3480. condition that was reported by the earlier trans
  3481.  
  3482. mission\ of an RNR\ frame by   that
  3483.  
  3484. same station (DCE or\ DTE). The DCE or DTE confirms acceptance of SABM/SABME
  3485.  
  3486. [modulo\ 8 (basic) operation/modulo\ 128 (extended) operation] command by the
  3487.  
  3488. transmission, at the first opportunity, of a UA\ response. Upon acceptance of
  3489.  
  3490. this command, the DCE or DTE send state variable\ V(S) and receive state
  3491.  
  3492. variable V(R) are set to\ 0.
  3493.  
  3494. .LP
  3495.  
  3496. Previously transmitted I\ frames that are unacknowledged when this
  3497.  
  3498. command is actioned remain unac
  3499.  
  3500. knowledged.\ It is the responsibility of a
  3501.  
  3502. higher layer (e.g.\ Packet Layer or MLP) to recover from the possible loss of
  3503.  
  3504. the contents (e.g.\ packets) of such I\ frames.
  3505.  
  3506. .LP
  3507.  
  3508. \fINote\fR 
  3509.  
  3510. \ \(em\ The mode of operation of a data link [basic (modulo 8) or
  3511.  
  3512. extended (modulo\ 128)] is determined at subscription time and is only 
  3513. changed by going through a new subscription process. 
  3514.  
  3515. .LP
  3516.  
  3517. 2.3.4.6
  3518.  
  3519. \fIDisconnect (DISC)\fR 
  3520.  
  3521. \fI command\fR 
  3522.  
  3523. .LP
  3524.  
  3525. The DISC unnumbered command is used to terminate the mode
  3526.  
  3527. previously set. It is used to inform the DCE or DTE receiving the DISC 
  3528. command that the DTE or DCE sending the DISC command is suspending operation. 
  3529. No 
  3530.  
  3531. information field is permitted with the DISC command. Prior to actioning the
  3532.  
  3533. DISC command, the DCE or DTE receiving the DISC command confirms the acceptance 
  3534. of the DISC command by the transmission of a UA response. The DTE or DCE 
  3535.  
  3536. sending the DISC command enters the disconnected phase when it receives the
  3537.  
  3538. acknowledging UA response.
  3539.  
  3540. .LP
  3541.  
  3542. Previously transmitted I frames that are unacknowledged when this
  3543.  
  3544. command is actioned remain unacknowledged. It is the responsibility of 
  3545. a higher layer (e.g.\ Packet Layer or MLP) to recover from the possible 
  3546. loss of the 
  3547.  
  3548. contents (e.g.,\ packets) of such I frames.
  3549.  
  3550. .LP
  3551.  
  3552. 2.3.4.7
  3553.  
  3554. \fIUnnumbered acknowledgement (UA)\fR 
  3555.  
  3556. \fI response\fR 
  3557.  
  3558. .LP
  3559.  
  3560. The UA unnumbered response is used by the DCE or DTE to acknowledge the 
  3561. receipt and acceptance of the mode\(hysetting commands. Received mode\(hysetting 
  3562. commands are not actioned until the UA response is transmitted. The 
  3563.  
  3564. transmission of a UA response indicates the clearance of a busy condition 
  3565. that was reported by the earlier transmission of an RNR frame by that same 
  3566. station (DCE or DTE). No information field is permitted with the UA response. 
  3567.  
  3568. .LP
  3569.  
  3570.  
  3571.  
  3572. 2.3.4.8
  3573.  
  3574. \fIDisconnected mode (DM)\fR 
  3575.  
  3576. \fI response\fR 
  3577.  
  3578. .LP
  3579.  
  3580. The DM unnumbered response is used to report a status where the DCE or 
  3581. DTE is logically disconnected from the data link, and is in the disconnected 
  3582. phase. The DM response may be sent to indicate that the DCE or DTE has 
  3583. entered the disconnected phase without benefit of having received a DISC 
  3584. command, or, if sent in response to the reception of a mode setting command, 
  3585. is sent to 
  3586.  
  3587. inform the DTE or DCE that the DCE or DTE, respectively, is still in the
  3588.  
  3589. disconnected phase and cannot execute the set mode command. No information
  3590.  
  3591. field is permitted with the DM response.
  3592.  
  3593. .LP
  3594.  
  3595. A DCE or DTE in a disconnected phase will monitor received commands
  3596.  
  3597. and will react to an SABM/SABME command as outlined in \(sc\ 2.4.4 below, 
  3598. and will respond with a DM response with the F bit set to\ 1 to any other 
  3599. command 
  3600.  
  3601. received with the P\ bit set to\ 1.
  3602.  
  3603. .LP
  3604.  
  3605. 2.3.4.9
  3606.  
  3607. \fIFrame reject (FRMR)\fR 
  3608.  
  3609. \fI response\fR 
  3610.  
  3611. .LP
  3612.  
  3613. The FRMR unnumbered response is used by the DCE or DTE to report an error 
  3614. condition not recoverable by retransmission of the identical frame; 
  3615.  
  3616. i.e.\ at least one of the following conditions, which results from the 
  3617. receipt of a valid frame: 
  3618.  
  3619. .LP
  3620.  
  3621. 1)
  3622.  
  3623. the receipt of a command or response control field that is
  3624.  
  3625. undefined or not implemented;
  3626.  
  3627. .LP
  3628.  
  3629. 2)
  3630.  
  3631. the receipt of an I frame with an information field which
  3632.  
  3633. exceeds the maximum established length;
  3634.  
  3635. .LP
  3636.  
  3637. 3)
  3638.  
  3639. the receipt of an invalid N(R); or
  3640.  
  3641. .LP
  3642.  
  3643. 4)
  3644.  
  3645. the receipt of a frame with an information field which is
  3646.  
  3647. not permitted or the receipt of a supervisory or unnumbered
  3648.  
  3649. frame with incorrect length.
  3650.  
  3651. .LP
  3652.  
  3653. An undefined or not implemented control field is any of the
  3654.  
  3655. control field encodings that are not identified in Tables\ 5/X.25 or\ 6/X.25.
  3656.  
  3657. .LP
  3658.  
  3659.  
  3660.  
  3661. A valid N(R) must be within the range from the lowest send sequence
  3662.  
  3663. number N(S) of the still unacknowledged frame(s) to the current DCE send 
  3664. state variable inclusive (or to the current internal variable \fIx\fR 
  3665.  
  3666. if the DCE is in
  3667.  
  3668. the timer recovery condition as described in \(sc\ 2.4.5.9).
  3669.  
  3670. .LP
  3671.  
  3672.  
  3673.  
  3674. An information field which immediately follows the control field, and consists 
  3675. of\ 3 or 5\ octets [modulo\ 8 (basic) operation or modulo\ 128 (extended) 
  3676. operation, respectively], is returned with this response and provides the 
  3677.  
  3678. reason for the FRMR response. These formats are given in Tables\ 7/X.25
  3679.  
  3680. and\ 8/X.25.
  3681.  
  3682. .LP
  3683.  
  3684. 2.3.5
  3685.  
  3686. \fIException condition reporting and recovery\fR 
  3687.  
  3688. .LP
  3689.  
  3690. The error recovery procedures which are available to effect
  3691.  
  3692. recovery following the detection/occurrence of an 
  3693.  
  3694. exception condition
  3695.  
  3696.  at the Data Link Layer are described below. Exception conditions described 
  3697. are those situations which may occur as the result of transmission errors, 
  3698. DCE or DTE malfunction, or operational situations. 
  3699.  
  3700. .LP
  3701.  
  3702. 2.3.5.1
  3703.  
  3704. \fIBusy condition\fR 
  3705.  
  3706. .LP
  3707.  
  3708. The busy condition results when the DCE or DTE is temporarily
  3709.  
  3710. unable to continue to receive I frames due to internal constraints,
  3711.  
  3712. e.g.\ receive buffering limitations. In this case an RNR frame is transmitted
  3713.  
  3714. from the busy DCE or DTE. I\ frames pending transmission may be transmitted 
  3715. from the busy DCE or DTE prior to or following the RNR\ frame. 
  3716.  
  3717. .LP
  3718.  
  3719. An indication that the busy condition has cleared is communicated by the 
  3720. transmission of a UA (only in response to a SABM/SABME command), RR, REJ 
  3721. or SABM/SABME (modulo\ 8/modulo\ 128) frame. 
  3722.  
  3723. .LP
  3724.  
  3725. .LP
  3726.  
  3727. \fBTable 7/X.25 [T7.25], p.\fR 
  3728.  
  3729. .LP
  3730.  
  3731. \fBTable 8/X.25 [T8.25], p.\fR 
  3732.  
  3733. 2.3.5.2
  3734.  
  3735. \fIN(S) sequence error condition\fR 
  3736.  
  3737. .LP
  3738.  
  3739. The information field of all I frames received whose N(S) does not equal 
  3740. the receive state variable V(R) will be discarded. 
  3741.  
  3742. .LP
  3743.  
  3744. An N(S) sequence error exception condition occurs in the receiver when 
  3745. an I\ frame received contains an N(S) which is not equal to the receive 
  3746. state 
  3747.  
  3748. variable V(R) at the receiver. The receiver does not acknowledge (increment 
  3749. its receive state variable) the I\ frame causing the sequence error, or 
  3750. any I\ frame which may follow, until an I\ frame with the correct N(S) 
  3751. is received. 
  3752.  
  3753. .LP
  3754.  
  3755.  
  3756.  
  3757. A DCE or DTE which receives one or more valid I frames having sequence 
  3758. errors or subsequent supervisory frames (RR, RNR and REJ) shall accept 
  3759. the 
  3760.  
  3761. control information contained in the N(R) field and the P or F bit to perform 
  3762. data link control functions; e.g.\ to receive acknowledgement of previously 
  3763.  
  3764. transmitted I\ frames and to cause the DCE or DTE to respond (P bit set to 1).
  3765.  
  3766. .LP
  3767.  
  3768.  
  3769.  
  3770. The means specified in \(sc\(sc\ 2.3.5.2.1 and 2.3.5.2.2 shall be available 
  3771. for initiating the retransmission of lost or errored I\ frames following 
  3772. the 
  3773.  
  3774. occurrence of an N(S) sequence error condition.
  3775.  
  3776. .LP
  3777.  
  3778. 2.3.5.2.1
  3779.  
  3780. \fIREJ recovery\fR 
  3781.  
  3782. .LP
  3783.  
  3784. The REJ frame is used by a receiving DCE or DTE to initiate a
  3785.  
  3786. recovery (retransmission) following the detection of an N(S) sequence error.
  3787.  
  3788. .LP
  3789.  
  3790.  
  3791.  
  3792. With respect to each direction of transmission on the data link, only one 
  3793. \*Qsent REJ\*U exception condition from a DCE or DTE, to a DTE or DCE, 
  3794. is 
  3795.  
  3796. established at a time. A \*Qsent REJ\*U exception condition is cleared when the
  3797.  
  3798. requested I\ frame is received.
  3799.  
  3800. .LP
  3801.  
  3802.  
  3803.  
  3804. A DCE or DTE receiving a REJ frame initiates sequential
  3805.  
  3806. (re\(hy)transmission of I\ frames starting with the I\ frame indicated 
  3807. by the N(R) contained in the REJ frame. The retransmitted frames may contain 
  3808. an N(R) and a P bit that are updated from, and therefore different from, 
  3809. the ones contained in the originally transmitted I\ frames. 
  3810.  
  3811. .LP
  3812.  
  3813. 2.3.5.2.2
  3814.  
  3815. \fITime\(hyout recovery\fR 
  3816.  
  3817. .LP
  3818.  
  3819. If a DCE or DTE, due to a transmission error, does not receive (or receives 
  3820. and discards) a single I\ frame or the last I\ frame(s) in a sequence of 
  3821. I\ frames, it will not detect an N(S) sequence error condition and, therefore, 
  3822. will not transmit a REJ frame. The DTE or DCE which transmitted the 
  3823.  
  3824. unacknowledged I\ frame(s) shall, following the completion of a system 
  3825. specified time\(hyout period (see \(sc\(sc\ 2.4.5.1 and 2.4.5.9 below), 
  3826. take appropriate recovery action to determine at which I\ frame retransmission 
  3827. must begin. The 
  3828.  
  3829. retransmitted frame(s) may contain an N(R) and a P bit that is updated from,
  3830.  
  3831. and therefore different from, the ones contained in the originally transmitted 
  3832. frame(s). 
  3833.  
  3834. .LP
  3835.  
  3836. 2.3.5.3
  3837.  
  3838. \fIInvalid frame\fR 
  3839.  
  3840. \fI condition\fR 
  3841.  
  3842. .LP
  3843.  
  3844. Any frame which is invalid will be discarded, and no action is
  3845.  
  3846. taken as the result of that frame. An invalid frame is defined as one
  3847.  
  3848. which:
  3849.  
  3850. .LP
  3851.  
  3852. a)
  3853.  
  3854. is not properly bounded by two flags;
  3855.  
  3856. .LP
  3857.  
  3858. b)
  3859.  
  3860. in basic (modulo 8) operation, contains fewer than 32 bits
  3861.  
  3862. between flags; in extended (modulo\ 128) operation, contains
  3863.  
  3864. fewer than 40\ bits between flags of frames that contain sequence
  3865.  
  3866. numbers or 32\ bits between flags of frames that do not contain
  3867.  
  3868. sequence numbers;
  3869.  
  3870. .LP
  3871.  
  3872. c)
  3873.  
  3874. contains a Frame Check Sequence (FCS) error; or
  3875.  
  3876. .LP
  3877.  
  3878. d)
  3879.  
  3880. contains an address other than A or B (for single link
  3881.  
  3882. operation) or other than C or D (for multilink operation).
  3883.  
  3884. .LP
  3885.  
  3886.  
  3887.  
  3888. For those networks that are octet aligned, a detection of
  3889.  
  3890. non\(hyoctet alignment may be made at the Data Link Layer by adding a frame
  3891.  
  3892. validity check that requires the number of bits between the opening flag and
  3893.  
  3894. the closing flag, excluding bits inserted for transparency, to be an integral 
  3895. number of octets in length, or the frame is considered invalid. 
  3896.  
  3897. .LP
  3898.  
  3899. 2.3.5.4
  3900.  
  3901. \fIFrame rejection\fR 
  3902.  
  3903. \fI condition\fR 
  3904.  
  3905. .LP
  3906.  
  3907. A frame rejection condition is established upon the receipt of an error\(hyfree 
  3908. frame with one of the conditions listed in \(sc\ 2.3.4.9 above. 
  3909.  
  3910. .LP
  3911.  
  3912.  
  3913.  
  3914. At the DCE or DTE, this frame rejection exception condition is
  3915.  
  3916. reported by an FRMR response for appropriate DTE or DCE action, respectively. 
  3917. Once a DCE has established such an exception condition, no additional I\ 
  3918. frames are accepted until the condition is reset by the DTE, except for 
  3919. examination of the P bit. The FRMR response may be repeated at each opportunity, 
  3920. as specified in \(sc\ 2.4.7.3, until recovery is effected by the DTE, or 
  3921. until the DCE initiates its own recovery in case the DTE does not respond. 
  3922.  
  3923. .LP
  3924.  
  3925. 2.3.5.5
  3926.  
  3927. \fIExcessive idle channel state condition on incoming\fR 
  3928.  
  3929.  
  3930.  
  3931. \fIchannel\fR 
  3932.  
  3933. .LP
  3934.  
  3935. Upon detection of an idle channel state condition (see \(sc\ 2.2.12.2 above) 
  3936. on the incoming channel, the DCE shall wait for a period\ T3 (see 
  3937.  
  3938. \(sc\ 2.4.8.3 below) without taking any specific action, waiting for detection 
  3939. of a return to the active channel state (i.e.,\ detection of at least one 
  3940. flag 
  3941.  
  3942. sequence). After the period\ T3, the DCE shall notify the higher layer 
  3943. (e.g.\ the Packet Layer or the MLP) of the excessive idle channel state 
  3944. condition, but 
  3945.  
  3946. shall not take any action that would preclude the DTE from establishing the
  3947.  
  3948. data link by normal data link set\(hyup procedures.
  3949.  
  3950. .LP
  3951.  
  3952. \fINote\fR 
  3953.  
  3954. \ \(em\ Other actions to be taken by the DCE at the Data Link Layer upon 
  3955. expiration of period\ T3 is a subject for further study. 
  3956.  
  3957. .LP
  3958.  
  3959.  
  3960.  
  3961. 2.4
  3962.  
  3963. \fIDescription of the \fR 
  3964.  
  3965. \fILAPB procedure\fR 
  3966.  
  3967. .LP
  3968.  
  3969. 2.4.1
  3970.  
  3971. \fILAPB basic and extended modes of operation\fR 
  3972.  
  3973. .LP
  3974.  
  3975. In accordance with the system choice made by the DTE at
  3976.  
  3977. subscription time, the DCE will either support modulo\ 8 (basic) operation or
  3978.  
  3979. will support modulo\ 128 (extended) operation. Changing from basic operation 
  3980. to extended operation, or vice versa, in the DCE requires resubscription 
  3981. by the 
  3982.  
  3983. DTE for the desired service, and is not supported dynamically.
  3984.  
  3985. .LP
  3986.  
  3987. Table 5/X.25 indicates the command and response control field formats used 
  3988. with the basic (modulo\ 8) service. The mode\(hysetting command employed 
  3989. to 
  3990.  
  3991. initialize (set up) or reset the basic mode is the SABM command. Table 
  3992. 6/X.25 indicates the command and response control field formats used with 
  3993. the extended (modulo\ 128) service. The mode\(hysetting command employed 
  3994. to initialize (set up) or reset the extended mode is the SABME command. 
  3995.  
  3996. .LP
  3997.  
  3998. 2.4.2
  3999.  
  4000. \fILAPB procedure for addressing\fR 
  4001.  
  4002. .LP
  4003.  
  4004. The address field identifies a frame as either a command or a
  4005.  
  4006. response. A command frame contains the address of the DCE or DTE to which 
  4007. the command is being sent. A response frame contains the address of the 
  4008. DCE or DTE sending the frame. 
  4009.  
  4010. .LP
  4011.  
  4012. In order to allow differentiation between single link operation and
  4013.  
  4014. the optional multilink operation for diagnostic and/or maintenance reasons,
  4015.  
  4016. different address pair encodings are assigned to data links operating with
  4017.  
  4018. multilink procedure compared to data links operating with the single link
  4019.  
  4020. procedure.
  4021.  
  4022. .LP
  4023.  
  4024. Frames containing commands transferred from the DCE to the DTE will
  4025.  
  4026. contain the address\ A for the single link operation and address\ C for the
  4027.  
  4028. multilink operation.
  4029.  
  4030. .LP
  4031.  
  4032. Frames containing responses transferred from the DCE to the DTE will contain 
  4033. the address\ B for the single link operation and address\ D for the 
  4034.  
  4035. multilink operation.
  4036.  
  4037. .LP
  4038.  
  4039.  
  4040.  
  4041. Frames containing commands transferred from the DTE to the DCE shall contain 
  4042. the address\ B for the single link operation and address\ D for the 
  4043.  
  4044. multilink operation.
  4045.  
  4046. .LP
  4047.  
  4048. Frames containing responses transferred from the DTE to the DCE shall contain 
  4049. the address\ A for the single link operation and address\ C for the 
  4050.  
  4051. multilink operation.
  4052.  
  4053. .LP
  4054.  
  4055. These addresses are coded as follows:
  4056.  
  4057. .LP
  4058.  
  4059. Address
  4060.  
  4061. 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8
  4062.  
  4063. .LP
  4064.  
  4065. Single link operation
  4066.  
  4067. \ \ A
  4068.  
  4069. 1\ 1\ 0\ 0\ 0\ 0\ 0\ 0
  4070.  
  4071. .LP
  4072.  
  4073. \ \ B
  4074.  
  4075. 1\ 0\ 0\ 0\ 0\ 0\ 0\ 0
  4076.  
  4077. .LP
  4078.  
  4079. Multilink operation
  4080.  
  4081. \ \ C
  4082.  
  4083. 1\ 1\ 1\ 1\ 0\ 0\ 0\ 0
  4084.  
  4085. .LP
  4086.  
  4087. \ \ D
  4088.  
  4089. 1\ 1\ 1\ 0\ 0\ 0\ 0\ 0
  4090.  
  4091. .LP
  4092.  
  4093. \fINote\fR 
  4094.  
  4095. \ \(em\ The DCE will discard all frames received with an address other 
  4096. than\ A or\ B (single link operation), or\ C or\ D (multilink operation). 
  4097.  
  4098. .LP
  4099.  
  4100. 2.4.3
  4101.  
  4102. \fILAPB procedure for the use of the P/F bit\fR 
  4103.  
  4104. .LP
  4105.  
  4106. The DCE or DTE receiving an SABM/SABME, DISC, supervisory command or I\ 
  4107. frame with the P\ bit set to\ 1 will set the F\ bit to\ 1 in the next response 
  4108. frame it transmits. 
  4109.  
  4110. .LP
  4111.  
  4112. The response frame returned by the DCE to an SABM/SABME or DISC
  4113.  
  4114. command with the P\ bit set to\ 1 will be a UA or DM response with the 
  4115. F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  4116. with the P\ bit set to\ 1, received during the information transfer phase, 
  4117. will be an RR, REJ, RNR or FRMR response with the F\ bit set to\ 1. The 
  4118. response frame returned by the 
  4119.  
  4120. DCE to a supervisory command with the P\ bit set to\ 1, received during the
  4121.  
  4122. information transfer phase, will be an RR, REJ, RNR or FRMR response with 
  4123. the F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  4124. or 
  4125.  
  4126. supervisory frame with the P\ bit set to\ 1, received during the disconnected
  4127.  
  4128. phase, will be a DM response with the F\ bit set to\ 1.
  4129.  
  4130. .LP
  4131.  
  4132. The P bit may be used by the DCE in conjunction with the timer
  4133.  
  4134. recovery condition (see \(sc\ 2.4.5.9 below).
  4135.  
  4136. .LP
  4137.  
  4138. \fINote\fR 
  4139.  
  4140. \ \(em\ Other use of the P bit by the DCE is a subject for further
  4141.  
  4142. study.
  4143.  
  4144. .LP
  4145.  
  4146. 2.4.4
  4147.  
  4148. \fILAPB procedure for data link set\(hyup and disconnection\fR 
  4149.  
  4150. .LP
  4151.  
  4152.  
  4153.  
  4154. 2.4.4.1
  4155.  
  4156. \fIData link set\(hyup\fR 
  4157.  
  4158. .LP
  4159.  
  4160. The DCE will indicate that it is able to set up the data link by
  4161.  
  4162. transmitting contiguous flags (active channel state).
  4163.  
  4164. .LP
  4165.  
  4166. Either the DTE or the DCE may initiate data link set\(hyup. Prior to
  4167.  
  4168. initiation of data link set\(hyup, either the DCE or the DTE may initiate data
  4169.  
  4170. link
  4171.  
  4172. disconnection (see \(sc\ 2.4.4.3) for the purpose of insuring that the 
  4173. DCE and the DTE are in the same phase. The DCE may also transmit an unsolicited 
  4174. DM response to request the DTE to initiate data link set\(hyup. 
  4175.  
  4176. .LP
  4177.  
  4178. The DTE shall initiate data link set\(hyup by transmitting an SABM/SABME 
  4179. command to the DCE. If, upon receipt of the SABM/SABME command correctly, 
  4180. the DCE determines that it can enter the information transfer phase, it 
  4181. will return a UA response to the DTE, will reset its send and receive state 
  4182. variables V(S) and V(R) to zero, and will consider that the data link is 
  4183. set up. If, upon 
  4184.  
  4185. receipt
  4186.  
  4187. of the SABM/SABME command correctly, the DCE determines that it cannot enter
  4188.  
  4189. the information transfer phase, it will return a DM response to the DTE as a
  4190.  
  4191. denial to the data link set\(hyup initialization and will consider that the
  4192.  
  4193. data link is
  4194.  
  4195. \fInot\fR 
  4196.  
  4197.  set up. In order to avoid misinterpretation of the DM response received, 
  4198. it is suggested that the DTE always sends its SABM/SABME command with the 
  4199. P\ bit set to\ 1. Otherwise, it is not possible to differentiate a DM response 
  4200. intended as a denial to data link set\(hyup from a DM response that is 
  4201. issued in a separate unsolicited sense as a request for a mode\(hysetting 
  4202. command (as described 
  4203.  
  4204. in\ \(sc\ 2.4.4.4.2).
  4205.  
  4206. .LP
  4207.  
  4208. The DCE will initiate data link set\(hyup by transmitting an SABM/SABME 
  4209. command to the DTE and starting its Timer\ T1 in order to determine when 
  4210. too 
  4211.  
  4212. much time has elapsed waiting for a reply (see \(sc\ 2.4.8.1 below). Upon 
  4213. reception of a UA response from the DTE, the DCE will reset its send and 
  4214. receive state 
  4215.  
  4216. variables\ V(S) and\ V(R) to zero, will stop its Timer\ T1, and will consider 
  4217. that the data link is set up. Upon reception of a DM response from the 
  4218. DTE as a 
  4219.  
  4220. denial
  4221.  
  4222. to the data link set\(hyup initialization, the DCE will stop its Timer\ 
  4223. T1 and will consider that the data link is \fInot\fR 
  4224.  
  4225. set up.
  4226.  
  4227. .LP
  4228.  
  4229.  
  4230.  
  4231. The DCE, having sent the SABM/SABME command, will ignore and discard any 
  4232. frames except an SABM/SABME or DISC command, or a UA or DM response 
  4233.  
  4234. received from the DTE. The receipt of an SABM/SABME or DISC command from the
  4235.  
  4236. DTE will result in a collision situation that is resolved per \(sc\ 2.4.4.5 
  4237. below. Frames other than the UA and DM responses sent in response to a 
  4238. received 
  4239.  
  4240. SABM/SABME or DISC command will be sent only after the data link is set 
  4241. up and if no outstanding SABM/SABME command exists. 
  4242.  
  4243. .LP
  4244.  
  4245. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  4246. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  4247.  
  4248. resend the SABM/SABME command and will restart Timer\ T1. After transmission 
  4249. of the SABM/SABME command N2 times by the DCE, appropriate higher layer 
  4250. recovery action will be initiated. The value of N2 is defined in \(sc\ 
  4251. 2.4.8.4 below. 
  4252.  
  4253. .LP
  4254.  
  4255. 2.4.4.2
  4256.  
  4257. \fIInformation transfer phase\fR 
  4258.  
  4259. .LP
  4260.  
  4261. After having transmitted the UA response to the SABM/SABME command or having 
  4262. received the UA response to a transmitted SABM/SABME command, the DCE will 
  4263. accept and transmit I and supervisory frames according to the procedures 
  4264. described in \(sc\ 2.4.5 below. 
  4265.  
  4266. .LP
  4267.  
  4268.  
  4269.  
  4270. When receiving the SABM/SABME command while in the information
  4271.  
  4272. transfer phase, the DCE will conform to the data link resetting procedure
  4273.  
  4274. described in \(sc\ 2.4.7 below.
  4275.  
  4276. .LP
  4277.  
  4278. 2.4.4.3
  4279.  
  4280. \fIData link disconnection\fR 
  4281.  
  4282. .LP
  4283.  
  4284. The DTE shall initiate a disconnect of the data link by
  4285.  
  4286. transmitting a DISC command to the DCE. On correctly receiving a DISC command 
  4287. in the information transfer phase, the DCE will send a UA response and 
  4288. enter 
  4289.  
  4290. the disconnected phase. On correctly receiving a DISC command in the
  4291.  
  4292. disconnected phase, the DCE will send a DM response and remain in the
  4293.  
  4294. disconnected phase. In order to avoid misinterpretation of the DM response
  4295.  
  4296. received, it is suggested that the DTE always sends its DISC command with 
  4297. the P\ bit set to\ 1. Otherwise, it is not possible to differentiate a 
  4298. DM response 
  4299.  
  4300. intended as an indication that the DCE is already in the disconnected phase
  4301.  
  4302. from a DM response that is issued in a separate unsolicited sense as a 
  4303. request for a mode\(hysetting command (as described in \(sc\ 2.4.4.4.2). 
  4304.  
  4305. .LP
  4306.  
  4307.  
  4308.  
  4309. The DCE will initiate a disconnect of the data link by transmitting a DISC 
  4310. command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 below). 
  4311. Upon reception of an UA response from the DTE, the DCE will stop its Timer\ 
  4312. T1 and 
  4313.  
  4314. will enter the disconnected phase. Upon reception of a DM response from 
  4315. the DTE as an indication that the DTE was already in the disconnected phase, 
  4316. the DCE 
  4317.  
  4318. will stop its Timer\ T1 and will enter the disconnected phase.
  4319.  
  4320. .LP
  4321.  
  4322. The DCE, having sent the DISC command, will ignore and discard any
  4323.  
  4324. frames except an SABM/SABME or DISC command, or a UA or DM response received
  4325.  
  4326. from the DTE. The receipt of an SABM/SABME or DISC command from the DTE will
  4327.  
  4328. result in a collision situation that is resolved per \(sc\ 2.4.4.5 below.
  4329.  
  4330. .LP
  4331.  
  4332.  
  4333.  
  4334. After the DCE sends the DISC command, if a UA or DM response is not
  4335.  
  4336. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  4337. resend the DISC command and will restart Timer\ T1. After transmission 
  4338. of the DISC 
  4339.  
  4340. command N2 times by the DCE, appropriate higher layer recovery action will 
  4341. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  4342.  
  4343. .LP
  4344.  
  4345. 2.4.4.4
  4346.  
  4347. \fIDisconnected phase\fR 
  4348.  
  4349. .LP
  4350.  
  4351. 2.4.4.4.1
  4352.  
  4353. After having received a DISC command from the DTE and
  4354.  
  4355. returned a UA response to the DTE, or having received the UA response to a
  4356.  
  4357. transmitted DISC command, the DCE will enter the disconnected phase.
  4358.  
  4359. .LP
  4360.  
  4361. In the disconnected phase, the DCE may initiate data link set\(hyup. In 
  4362. the disconnected phase, the DCE will react to the receipt of an SABM/SABME 
  4363. command as described in \(sc\ 2.4.4.1 above and will transmit a DM response 
  4364. in 
  4365.  
  4366. answer to a received DISC command. When receiving any other command (defined, 
  4367. or undefined or not implemented) with the P\ bit set to\ 1, the DCE will 
  4368. transmit a DM response with the F\ bit set to\ 1. Other frames received 
  4369. in the 
  4370.  
  4371. disconnected phase will be ignored by the DCE.
  4372.  
  4373. .LP
  4374.  
  4375. 2.4.4.4.2
  4376.  
  4377. When the DCE enters the disconnected phase after
  4378.  
  4379. detecting error conditions as listed in \(sc\ 2.4.6 below, or after an internal
  4380.  
  4381. malfunction, it may indicate this by sending a DM response rather than 
  4382. a DISC command. In these cases, the DCE will transmit a DM response and 
  4383. start its 
  4384.  
  4385. Timer\ T1 (see \(sc\ 2.4.8.1 below).
  4386.  
  4387. .LP
  4388.  
  4389. If Timer T1 runs out before the reception of an SABM/SABME or DISC command 
  4390. from the DTE, the DCE will retransmit the DM response and restart 
  4391.  
  4392. Timer\ T1. After transmission of the DM response N2 times, the DCE will 
  4393. remain in the disconnected phase and appropriate recovery actions will 
  4394. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  4395.  
  4396. .LP
  4397.  
  4398. Alternatively, after an internal malfunction, the DCE may either
  4399.  
  4400. initiate a data link resetting procedure (see \(sc\ 2.4.7 below) or disconnect 
  4401. the data link (see \(sc\ 2.4.4.3 above) prior to initiating a data link 
  4402. set\(hyup 
  4403.  
  4404. procedure (see \(sc\ 2.4.4.1 above).
  4405.  
  4406. .LP
  4407.  
  4408. 2.4.4.5
  4409.  
  4410. \fICollision of unnumbered commands\fR 
  4411.  
  4412. .LP
  4413.  
  4414. Collision situations shall be resolved in the following way:
  4415.  
  4416. .LP
  4417.  
  4418. 2.4.4.5.1
  4419.  
  4420. If the sent and received unnumbered commands are the
  4421.  
  4422. same, the DCE and the DTE shall each send the UA response at the earliest
  4423.  
  4424. possible opportunity. The DCE shall enter the indicated phase either,
  4425.  
  4426. .LP
  4427.  
  4428.  
  4429.  
  4430. 1)
  4431.  
  4432. after receiving the UA response,
  4433.  
  4434. .LP
  4435.  
  4436. 2)
  4437.  
  4438. after sending the UA response, or
  4439.  
  4440. .LP
  4441.  
  4442. 3)
  4443.  
  4444. after timing out waiting for the UA response having sent a
  4445.  
  4446. UA response.
  4447.  
  4448. .LP
  4449.  
  4450. In the case of 2) above, the DCE will accept a subsequent UA
  4451.  
  4452. response to the mode\(hysetting command it issued without causing an exception
  4453.  
  4454. condition if received within the time\(hyout interval.
  4455.  
  4456. .LP
  4457.  
  4458.  
  4459.  
  4460. 2.4.4.5.2
  4461.  
  4462. If the sent and received unnumbered commands are
  4463.  
  4464. different, the DCE and the DTE shall each enter the disconnected phase and
  4465.  
  4466. issue a DM response at the earliest possible opportunity.
  4467.  
  4468. .LP
  4469.  
  4470. 2.4.4.6
  4471.  
  4472. \fICollision of DM response with SABM/SABME or DISC\fR 
  4473.  
  4474.  
  4475.  
  4476. \fIcommand\fR 
  4477.  
  4478. .LP
  4479.  
  4480. When a DM response is issued by the DCE or DTE as an unsolicited
  4481.  
  4482. response to request the DTE or DCE, respectively, to issue a mode\(hysetting
  4483.  
  4484. command as described in \(sc\ 2.4.4.4, a collision between an SABM/SABME 
  4485. or DISC 
  4486.  
  4487. command and the unsolicited DM response may occur. In order to avoid
  4488.  
  4489. misinterpretation of the DM response received, the DTE always sends its
  4490.  
  4491. SABM/SABME or DISC command with the P\ bit set to\ 1.
  4492.  
  4493. .LP
  4494.  
  4495. 2.4.4.7
  4496.  
  4497. \fICollision of DM responses\fR 
  4498.  
  4499. .LP
  4500.  
  4501. A contention situation may occur when both the DCE and the DTE
  4502.  
  4503. issue a DM response to request a mode\(hysetting command. In this case, the DTE
  4504.  
  4505. will issue an SABM/SABME command to resolve the contention situation.
  4506.  
  4507. .LP
  4508.  
  4509.  
  4510.  
  4511. 2.4.5
  4512.  
  4513. \fILAPB procedures for information transfer\fR 
  4514.  
  4515. .LP
  4516.  
  4517. The procedures which apply to the transmission of I\ frames in each direction 
  4518. during the information transfer phase are described below. 
  4519.  
  4520. .LP
  4521.  
  4522. In the following, \*Qnumber one higher\*U is in reference to a
  4523.  
  4524. continuously repeated sequence series, i.e., 7 is 1\ higher than 6 and 0 is
  4525.  
  4526. 1\ higher than 7 for modulo\ 8 series, and 127 is 1\ higher than 126 and 0 is
  4527.  
  4528. 1\ higher than 127 for modulo\ 128 series.
  4529.  
  4530. .LP
  4531.  
  4532. 2.4.5.1
  4533.  
  4534. \fISending I frames\fR 
  4535.  
  4536. .LP
  4537.  
  4538. When the DCE has an I frame to transmit (i.e. an I frame not
  4539.  
  4540. already transmitted, or having to be retransmitted as described in \(sc\ 
  4541. 2.4.5.6 
  4542.  
  4543. below), it will transmit it with an N(S) equal to its current send state
  4544.  
  4545. variable V(S), and an N(R) equal to its current receive state variable 
  4546. V(R). At the end of the transmission of the I\ frame, the DCE will increment 
  4547. its send 
  4548.  
  4549. state variable V(S) by\ 1.
  4550.  
  4551. .LP
  4552.  
  4553. If Timer T1 is not running at the time of transmission of an I frame, it 
  4554. will be started. 
  4555.  
  4556. .LP
  4557.  
  4558. If the send state variable V(S) is equal to the last value of N(R)
  4559.  
  4560. received plus \fIk\fR 
  4561.  
  4562. (where \fIk\fR 
  4563.  
  4564. is the maximum number of outstanding I\ frames \(em
  4565.  
  4566. see \(sc\ 2.4.8.6 below), the DCE will not transmit any new I\ frames, but may
  4567.  
  4568. retransmit an I\ frame as described in \(sc\(sc\ 2.4.5.6 or 2.4.5.9 below.
  4569.  
  4570. .LP
  4571.  
  4572. When the DCE is in the busy condition, it may still transmit I frames, 
  4573. provided that the DTE is not busy. When the DCE is in the frame rejection 
  4574.  
  4575. condition, it will stop transmitting I\ frames.
  4576.  
  4577. .LP
  4578.  
  4579. 2.4.5.2
  4580.  
  4581. \fIReceiving an I frame\fR 
  4582.  
  4583. .LP
  4584.  
  4585. 2.4.5.2.1
  4586.  
  4587. When the DCE is not in a busy condition and receives a valid I\ frame whose 
  4588. send sequence number N(S) is equal to the DCE receive state 
  4589.  
  4590. variable V(R), the DCE will accept the information field of this frame,
  4591.  
  4592. increment by one its receive state variable V(R), and act as follows:
  4593.  
  4594. .LP
  4595.  
  4596.  
  4597.  
  4598. a)
  4599.  
  4600. If the DCE is still not in a busy condition:
  4601.  
  4602. .LP
  4603.  
  4604. i)
  4605.  
  4606. If an I frame is available for transmission by the
  4607.  
  4608. DCE, it may act as in \(sc\ 2.4.5.1 above and acknowledge
  4609.  
  4610. the received I frame by setting N(R) in the control field
  4611.  
  4612. of the next transmitted I\ frame to the value of the DCE
  4613.  
  4614. receive state variable V(R). Alternatively, the DCE may
  4615.  
  4616. acknowledge the received I\ frame by transmitting an RR
  4617.  
  4618. frame with the N(R) equal to the value of the DCE receive
  4619.  
  4620. state variable V(R).
  4621.  
  4622. .LP
  4623.  
  4624. ii)
  4625.  
  4626. If no I frame is available for transmission by the
  4627.  
  4628. DCE, it will transmit an RR frame with N(R) equal to the
  4629.  
  4630. value of the DCE receive state variable V(R).
  4631.  
  4632. .LP
  4633.  
  4634.  
  4635.  
  4636. b)
  4637.  
  4638. If the DCE is now in a busy condition, it will transmit an
  4639.  
  4640. RNR frame with N(R) equal to the value of the DCE receive
  4641.  
  4642. state variable V(R) (see \(sc\ 2.4.5.8).
  4643.  
  4644. .LP
  4645.  
  4646.  
  4647.  
  4648. 2.4.5.2.2
  4649.  
  4650. When the DCE is in a busy condition, it may ignore the
  4651.  
  4652. information field contained in any received I\ frame.
  4653.  
  4654. .LP
  4655.  
  4656. 2.4.5.3
  4657.  
  4658. \fIReception of invalid frames\fR 
  4659.  
  4660. .LP
  4661.  
  4662. When the DCE receives an invalid frame (see \(sc\ 2.3.5.3), this frame 
  4663. will be discarded. 
  4664.  
  4665. .LP
  4666.  
  4667. 2.4.5.4
  4668.  
  4669. \fIReception of out\(hyof\(hysequence I frames\fR 
  4670.  
  4671. .LP
  4672.  
  4673. When the DCE receives a valid I frame whose send sequence number
  4674.  
  4675. N(S) is incorrect, i.e.,\ not equal to the current DCE receive state variable
  4676.  
  4677. V(R), it will discard the information field of the I\ frame and transmit 
  4678. an REJ frame with the N(R) set to one higher than the N(S) of the last 
  4679. correctly 
  4680.  
  4681. received I\ frame. The REJ frame will be a command frame with the P\ bit 
  4682. set to\ 1 if an acknowledged transfer of the retransmission request is 
  4683. required; 
  4684.  
  4685. otherwise the REJ frame may be either a command or a response frame. The DCE
  4686.  
  4687. will then discard the information field of all I\ frames received until the
  4688.  
  4689. expected I\ frame is correctly received. When receiving the expected I\ frame,
  4690.  
  4691. the DCE will then acknowledge the I\ frame as described in \(sc\ 2.4.5.2 
  4692. above. The DCE will use the N(R) and P\ bit information in the discarded 
  4693. I\ frames as 
  4694.  
  4695. described in \(sc\ 2.3.5.2 above.
  4696.  
  4697. .LP
  4698.  
  4699. 2.4.5.5
  4700.  
  4701. \fIReceiving acknowledgement\fR 
  4702.  
  4703. .LP
  4704.  
  4705. When correctly receiving an I frame or a supervisory frame (RR, RNR or 
  4706. REJ), even in the busy condition, the DCE will consider the N(R) contained 
  4707. in this frame as an acknowledgement for all I\ frames it has transmitted 
  4708. with an N(S) up to and including the received N(R)\(em1. The DCE will stop 
  4709. Timer\ T1 when it correctly receives an I\ frame or a supervisory frame 
  4710. with the N(R) higher 
  4711.  
  4712. than the last received N(R) (actually acknowledging some I\ frames), or 
  4713. an REJ frame with an N(R) equal to the last received N(R). 
  4714.  
  4715. .LP
  4716.  
  4717.  
  4718.  
  4719. If Timer T1 has been stopped by the receipt on an I, RR or RNR frame, and 
  4720. if there are outstanding I\ frames still unacknowledged, the DCE will 
  4721.  
  4722. restart Timer\ T1. If Timer\ T1 then runs out, the DCE will follow the 
  4723. recovery procedure (\(sc\ 2.4.5.9 below) with respect to the unacknowledged 
  4724. I\ frames. If 
  4725.  
  4726. Timer\ T1 has been stopped by the receipt of an REJ frame, the DCE will 
  4727. follow the retransmission procedures in \(sc\ 2.4.5.6 below. 
  4728.  
  4729. .LP
  4730.  
  4731. 2.4.5.6
  4732.  
  4733. \fIReceiving an REJ frame\fR 
  4734.  
  4735. .LP
  4736.  
  4737. When receiving an REJ frame, the DCE will set its send state
  4738.  
  4739. variable V(S) to the N(R) received in the REJ control field. It will transmit 
  4740. the corresponding I\ frame as soon as it is available or retransmit it 
  4741. in 
  4742.  
  4743. accordance with the procedures described in \(sc\ 2.4.5.1 above. (Re)transmission 
  4744. will conform to the following procedure: 
  4745.  
  4746. .LP
  4747.  
  4748. i)
  4749.  
  4750. if the DCE is transmitting a supervisory command or response
  4751.  
  4752. when it receives the REJ frame, it will complete that
  4753.  
  4754. transmission before commencing transmission of the requested
  4755.  
  4756. I\ frame;
  4757.  
  4758. .LP
  4759.  
  4760.  
  4761.  
  4762. ii)
  4763.  
  4764. if the DCE is transmitting an unnumbered command or
  4765.  
  4766. response when it receives the REJ frame, it will ignore the
  4767.  
  4768. request for retransmission;
  4769.  
  4770. .LP
  4771.  
  4772. iii)
  4773.  
  4774. if the DCE is transmitting an I frame when the REJ frame
  4775.  
  4776. is received, it may abort the I\ frame and commence transmission
  4777.  
  4778. of the requested I\ frame immediately after abortion;
  4779.  
  4780. .LP
  4781.  
  4782. iv)
  4783.  
  4784. if the DCE is not transmitting any frame when the REJ frame
  4785.  
  4786. is received, it will commence transmission of the requested
  4787.  
  4788. I\ frame immediately.
  4789.  
  4790. .LP
  4791.  
  4792. In all cases, if other unacknowledged I frames had already been
  4793.  
  4794. transmitted following the one indicated in the REJ frame, then those I 
  4795. frames will be retransmitted by the DCE following the retransmission of 
  4796. the requested I\ frame. Other I\ frames not yet transmitted may be transmitted 
  4797. following the 
  4798.  
  4799. retransmitted I\ frames.
  4800.  
  4801. .LP
  4802.  
  4803. If the REJ frame was received from the DTE as a command with the P bit 
  4804. set to\ 1, the DCE will transmit an RR, RNR or REJ response with the F 
  4805. bit set to\ 1 before transmitting or retransmitting the corresponding I\ 
  4806. frame. 
  4807.  
  4808. .LP
  4809.  
  4810. 2.4.5.7
  4811.  
  4812. \fIReceiving an RNR frame\fR 
  4813.  
  4814. .LP
  4815.  
  4816. After receiving an RNR frame whose N(R) acknowledges all frames
  4817.  
  4818. previously transmitted, the DCE will stop Timer\ T1 and may then transmit
  4819.  
  4820. an I\ frame, with the P\ bit set to\ 0, whose send sequence number is
  4821.  
  4822. equal to the N(R) indicated in the RNR frame, restarting Timer\ T1 as it 
  4823. does. After receiving an RNR frame whose N(R) indicates a previously transmitted 
  4824.  
  4825. frame, the DCE will not transmit or retransmit any I\ frame, Timer\ T1 being
  4826.  
  4827. already running. In either case, if the Timer\ T1 runs out before receipt 
  4828. of a busy clearance indication, the DCE will follow the procedure described 
  4829. in 
  4830.  
  4831. \(sc\ 2.4.5.9\ below. In any case, the DCE will not transmit any other 
  4832. I\ frames 
  4833.  
  4834. before receiving an RR or REJ frame, or before the completion of a link
  4835.  
  4836. resetting procedure.
  4837.  
  4838. .LP
  4839.  
  4840. Alternatively, after receiving an RNR frame, the DCE may wait for a
  4841.  
  4842. period of time (e.g.,\ the length of the Timer\ T1) and then transmit a
  4843.  
  4844. supervisory command frame (RR, RNR or REJ) with the P\ bit set to\ 1, and 
  4845. start Timer\ T1, in order to determine if there is any change in the receive 
  4846. status of the DTE. The DTE shall respond to the P\ bit set to\ 1 with a 
  4847. supervisory 
  4848.  
  4849. response frame (RR, RNR or REJ) with the F\ bit set to\ 1 indicating either
  4850.  
  4851. continuance of the busy condition (RNR) or clearance of the busy condition 
  4852. (RR or REJ). Upon receipt of the DTE response, Timer\ T1 is stopped. 
  4853.  
  4854. .LP
  4855.  
  4856.  
  4857.  
  4858. 1)
  4859.  
  4860. If the response is the RR or REJ response, the busy
  4861.  
  4862. condition is cleared and the DCE may transmit I\ frames beginning
  4863.  
  4864. with the I\ frame identified by the N(R) in the received response
  4865.  
  4866. frame.
  4867.  
  4868. .LP
  4869.  
  4870. 2)
  4871.  
  4872. If the response is the RNR response, the busy condition
  4873.  
  4874. still exists, and the DCE will after a period of time (e.g.\ the
  4875.  
  4876. length of Timer\ T1) repeat the enquiry of the DTE receive
  4877.  
  4878. status.
  4879.  
  4880. .LP
  4881.  
  4882. If Timer T1 runs out before a status response is received, the
  4883.  
  4884. enquiry process above is repeated. If N2 attempts to get a status response 
  4885. fail (i.e.\ Timer\ T1 runs out N2\ times), the DCE will initiate a data 
  4886. link resetting procedure as described in \(sc\ 2.4.7.2\ below or will transmit 
  4887. a DM response to ask the DTE to initiate a data link set\(hyup procedure 
  4888. as described in \(sc\ 2.4.4.1 and enter the disconnected phase. The value 
  4889. of N2 is defined in \(sc\ 2.4.8.4\ below. 
  4890.  
  4891. .LP
  4892.  
  4893.  
  4894.  
  4895. If, at any time during the enquiry process, an unsolicited RR or REJ frame 
  4896. is received from the DTE, it will be considered to be an indication of 
  4897.  
  4898. clearance of the busy condition. Should the unsolicited RR or REJ frame be a
  4899.  
  4900. command frame with the P bit set to\ 1, the appropriate response frame 
  4901. with the F\ bit set to 1 must be transmitted before the DCE may resume 
  4902. transmission of 
  4903.  
  4904. I\ frames. If Timer\ T1 is running, the DCE will wait for the non\(hybusy 
  4905. response with the F bit set to\ 1 or will wait for Timer\ T1 to run out 
  4906. and then either 
  4907.  
  4908. may reinitiate the enquiry process in order to realize a successful P/F bit
  4909.  
  4910. exchange or may resume transmission of I frames beginning with the I\ frame
  4911.  
  4912. identified by the N(R) in the received RR or REJ frame.
  4913.  
  4914. .LP
  4915.  
  4916. 2.4.5.8
  4917.  
  4918. \fIDCE busy condition\fR 
  4919.  
  4920. .LP
  4921.  
  4922. When the DCE enters a busy condition, it will transmit an RNR frame at 
  4923. the earliest opportunity. The RNR frame will be a command frame with the 
  4924. P bit set to\ 1 if an acknowledged transfer of the busy condition indication 
  4925. is 
  4926.  
  4927. required; otherwise the RNR frame may be either a command or a response 
  4928. frame. While in the busy condition, the DCE will accept and process supervisory 
  4929.  
  4930. frames, will accept and process the contents of the N(R) fields of I\ frames,
  4931.  
  4932. and will return an RNR response with the F bit set to\ 1 if it receives a
  4933.  
  4934. supervisory command or I command frame with the P bit set to\ 1. To clear the
  4935.  
  4936. busy condition, the DCE will transmit either an REJ frame or an RR frame, with
  4937.  
  4938. N(R) set to the current receive state variable V(R), depending on whether or
  4939.  
  4940. not it discarded information fields of correctly received I\ frames. The REJ
  4941.  
  4942. frame or the RR frame will be a command frame with the P bit set to\ 1 if an
  4943.  
  4944. acknowledged transfer of the busy\(hyto\(hynon\(hybusy transition is required, 
  4945. otherwise the REJ frame or the RR frame may be either a command or a response 
  4946. frame. 
  4947.  
  4948. .LP
  4949.  
  4950.  
  4951.  
  4952. 2.4.5.9
  4953.  
  4954. \fIWaiting acknowledgement\fR 
  4955.  
  4956. .LP
  4957.  
  4958. The DCE maintains an internal transmission attempt variable which is set 
  4959. to\ 0 when the DCE sends a UA response, when the DCE receives a UA 
  4960.  
  4961. response or an RNR command or response, or when the DCE correctly receives 
  4962. an I\ frame or supervisory frame with the N(R) higher than the last received 
  4963. N(R) (actually acknowledging some outstanding I\ frames). 
  4964.  
  4965. .LP
  4966.  
  4967. If Timer T1 runs out waiting for the acknowledgement from the DTE for an 
  4968. I\ frame transmitted, the DCE will enter the timer recovery condition, 
  4969. add 
  4970.  
  4971. one to its transmission attempt variable and set an internal variable \fIx\fR 
  4972.  
  4973. to
  4974.  
  4975. the current value of its send state variable V(S). The DCE will then restart
  4976.  
  4977. Timer T1, set its send state variable V(S) to the last value of N(R) received 
  4978. from the DTE and retransmit the corresponding I\ frame with the P bit set 
  4979. to\ 1, or transmit an appropriate supervisory command frame (RR, RNR or 
  4980. REJ) with the P\ bit set to\ 1. 
  4981.  
  4982. .LP
  4983.  
  4984.  
  4985.  
  4986. The timer recovery condition is cleared when the DCE receives a valid supervisory 
  4987. frame with the F\ bit\ set to\ 1. 
  4988.  
  4989. .LP
  4990.  
  4991. If, while in the timer recovery condition, the DCE correctly receives a 
  4992. supervisory frame with the F bit set to\ 1 and with the N(R) within the 
  4993. range from its current send state variable V(S) to \fIx\fR 
  4994.  
  4995. included, it will clear the
  4996.  
  4997. timer recovery condition (including stopping Timer\ T1) and set its send 
  4998. state variable V(S) to the value of the received N(R), and may then resume 
  4999. with 
  5000.  
  5001. I\ frame transmission or retransmission, as appropriate.
  5002.  
  5003. .LP
  5004.  
  5005. If, while in the timer recovery condition, the DCE correctly receives an 
  5006. I or supervisory frame with the P/F bit set to\ 0 and with a valid N(R) 
  5007. (see \(sc\ 2.3.4.9), it will not clear the timer recovery condition. The 
  5008. value of the 
  5009.  
  5010. received N(R) may be used to update the send state variable V(S). However, 
  5011. the DCE may decide to keep the last transmitted I\ frame in store (even 
  5012. if it is 
  5013.  
  5014. acknowledged) in order to be able to retransmit it with the P bit set to\ 
  5015. 1 when Timer\ T1 runs out at a later time. 
  5016.  
  5017. .LP
  5018.  
  5019.  
  5020.  
  5021. If the received supervisory frame with the P/F bit set to\ 0 is an REJ 
  5022. frame with a valid N(R), the DCE may either immediately initiate 
  5023.  
  5024. (re)transmission from the value of the send state variable V(S), or it may
  5025.  
  5026. ignore the request for retransmission and wait until the supervisory frame 
  5027. with the F bit set to\ 1 is received before initiating (re)transmission 
  5028. of frames 
  5029.  
  5030. from the value identified in the N(R) field of the supervisory frame with 
  5031. the F\ bit set to\ 1. In the case of immediate retransmission, in order 
  5032. to prevent 
  5033.  
  5034. duplicate retransmissions following the clearance of the timer recovery
  5035.  
  5036. condition, the DCE shall inhibit retransmission of a specific I\ frame [same
  5037.  
  5038. N(R) in the same numbering cycle] if the DCE has retransmitted that I\ 
  5039. frame as the result of a received REJ frame with the P/F bit set to\ 0. 
  5040.  
  5041. .LP
  5042.  
  5043. If, while in the timer recovery condition, the DCE receives a REJ
  5044.  
  5045. command with the P bit set to\ 1, the DCE will respond immediately with an
  5046.  
  5047. appropriate supervisory response with the F bit set to\ 1. The DCE may 
  5048. then use the value of the N(R) in the REJ command to update the send state 
  5049. variable 
  5050.  
  5051. V(S), and may either immediately begin (re)transmission from the value N(R)
  5052.  
  5053. indicated in the REJ frame or ignore the request for retransmission and wait
  5054.  
  5055. until the supervisory frame with the F bit set to\ 1 is received before
  5056.  
  5057. initiating (re)transmission of I\ frames from the value identified in the 
  5058. N(R) field of the supervisory frame with the F\ bit set to\ 1. In the case 
  5059. of 
  5060.  
  5061. immediate retransmission, in order to prevent duplicate retransmissions
  5062.  
  5063. following the clearance of the timer recovery condition, the DCE shall 
  5064. inhibit retransmission of a specific I\ frame [same N(R) in the same numbering 
  5065. cycle] 
  5066.  
  5067. if the DCE has retransmitted that I\ frame as the result of the received REJ
  5068.  
  5069. command with the P\ bit set to\ 1.
  5070.  
  5071. .LP
  5072.  
  5073. If Timer T1 runs out in the timer recovery condition, and no I or
  5074.  
  5075. supervisory frame with the P/F bit set to 0 and with a valid N(R) has been
  5076.  
  5077. received, or no REJ command with the P bit set to\ 1 and with a valid N(R) 
  5078. has been received, the DCE will add one to its transmission attempt variable, 
  5079.  
  5080. restart Timer\ T1, and either retransmit the I frame sent with the P bit set
  5081.  
  5082. to\ 1 or transmit an appropriate supervisory command with the P bit set to\ 1.
  5083.  
  5084. .LP
  5085.  
  5086.  
  5087.  
  5088. If the transmission attempt variable is equal to N2, the DCE will
  5089.  
  5090. initiate a data link resetting procedure as described in \(sc\ 2.4.7.2 
  5091. below, or 
  5092.  
  5093. will transmit a DM response to ask the DTE to initiate a data link set\(hyup
  5094.  
  5095. procedure as described in \(sc\ 2.4.4.1 above and enter the disconnected 
  5096. phase. N2 is a system parameter (see \(sc\ 2.4.8.4 below). 
  5097.  
  5098. .LP
  5099.  
  5100. \fINote\fR 
  5101.  
  5102. \ \(em\ Although the DCE may implement the internal variable \fIx\fR 
  5103.  
  5104. ,
  5105.  
  5106. other mechanisms do exist that achieve the identical function.
  5107.  
  5108. .LP
  5109.  
  5110. 2.4.6
  5111.  
  5112. \fILAPB conditions for \fR 
  5113.  
  5114. \fIdata link resetting or data link\fR 
  5115.  
  5116.  
  5117.  
  5118. \fIre\(hyinitialization\fR 
  5119.  
  5120. \fI(data link set\(hyup)\fR 
  5121.  
  5122. .LP
  5123.  
  5124. 2.4.6.1
  5125.  
  5126. When the DCE receives, during the information transfer phase, a
  5127.  
  5128. frame which is not invalid (see \(sc\ 2.3.5.3) with one of the conditions 
  5129. listed in \(sc\ 2.3.4.9 above, the DCE will request the DTE to initiate 
  5130. a data link resetting procedure by transmitting an FRMR response to the 
  5131. DTE as described in 
  5132.  
  5133. \(sc\ 2.4.7.3.
  5134.  
  5135. .LP
  5136.  
  5137. 2.4.6.2
  5138.  
  5139. When the DCE receives, during the information transfer phase, an FRMR response 
  5140. from the DTE, the DCE will either initiate the data link 
  5141.  
  5142. resetting procedures itself as described in \(sc\ 2.4.7.2 or return a DM 
  5143. response to ask the DTE to initiate the data link set\(hyup (initialization) 
  5144. procedure as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  5145. the DCE will enter 
  5146.  
  5147. the disconnected phase as described in \(sc\ 2.4.4.4.2.
  5148.  
  5149. .LP
  5150.  
  5151. 2.4.6.3
  5152.  
  5153. When the DCE receives, during the information transfer phase, a UA response, 
  5154. or an unsolicited response with the F bit set to\ 1, the DCE may 
  5155.  
  5156. either initiate the data link resetting procedures itself as described in
  5157.  
  5158. \(sc\ 2.4.7.2, or return a DM response to ask the DTE to initiate the data link
  5159.  
  5160. set\(hyup (initialization) procedure as described in \(sc\ 2.4.4.1. After 
  5161. transmitting a DM response, the DCE will enter the disconnected phase as 
  5162. described in 
  5163.  
  5164. \(sc\ 2.4.4.4.2.
  5165.  
  5166. .LP
  5167.  
  5168. 2.4.6.4
  5169.  
  5170. When the DCE receives, during the information transfer phase, a DM response 
  5171. from the DTE, the DCE will either initiate the data link set\(hyup 
  5172.  
  5173. (initialization) procedures itself as described in \(sc\ 2.4.4.1, or return 
  5174. a DM 
  5175.  
  5176. response to ask the DTE to initiate the data link set\(hyup (initialization)
  5177.  
  5178. procedures as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  5179. the DCE will enter the disconnected phase as described in \(sc\ 2.4.4.4.2. 
  5180.  
  5181. .LP
  5182.  
  5183.  
  5184.  
  5185. 2.4.7
  5186.  
  5187. \fILAPB procedure for data link resetting\fR 
  5188.  
  5189. .LP
  5190.  
  5191. 2.4.7.1
  5192.  
  5193. The data link resetting procedure is used to initialize both
  5194.  
  5195. directions of information transfer according to the procedure described 
  5196. below. The data link resetting procedure only applies during the information 
  5197. transfer phase. 
  5198.  
  5199. .LP
  5200.  
  5201. 2.4.7.2
  5202.  
  5203. Either the DTE or the DCE may initiate the data link resetting
  5204.  
  5205. procedure. The data link resetting procedure indicates a clearance of a DCE
  5206.  
  5207. and/or DTE busy condition, if present.
  5208.  
  5209. .LP
  5210.  
  5211. The DTE shall initiate a data link resetting by transmitting an
  5212.  
  5213. SABM/SABME command to the DCE. If, upon correct receipt of the SABM/SABME
  5214.  
  5215. command, the DCE determines that it can continue in the information transfer
  5216.  
  5217. phase, it will return a UA response to the DTE, will reset its send and 
  5218. receive state variables V(S) and V(R) to zero, and will remain in the information 
  5219.  
  5220. transfer phase. If, upon correct receipt of the SABM/SABME command, the DCE
  5221.  
  5222. determines that it cannot remain in the information transfer phase, it will
  5223.  
  5224. return a DM response as a denial to the resetting request and will enter the
  5225.  
  5226. disconnected phase.
  5227.  
  5228. .LP
  5229.  
  5230. The DCE will initiate a data link resetting by transmitting an
  5231.  
  5232. SABM/SABME command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 
  5233. below). Upon reception of a UA response from the DTE, the DCE will reset 
  5234. its send and receive state variables V(S) and V(R) to zero, will stop its 
  5235. Timer\ T1, and will remain in the information transfer phase. Upon reception 
  5236. of a DM response from the DTE as a denial to the data link resetting request, 
  5237. the DCE will stop its Timer\ T1 and will enter the disconnected phase. 
  5238.  
  5239. .LP
  5240.  
  5241. The DCE, having sent an SABM/SABME command, will ignore and discard
  5242.  
  5243. any frames received from the DTE except an SABM/SABME or DISC command, 
  5244. or a UA or DM response. The receipt of an SABM/SABME or DISC command from 
  5245. the DTE will result in a collision situation that is resolved per \(sc\ 
  5246. 2.4.4.5 above. Frames 
  5247.  
  5248. other than the UA or DM response sent in response to a received SABM/SABME 
  5249. or DISC command will be sent only after the data link is reset and if no 
  5250.  
  5251. outstanding SABM/SABME command exists.
  5252.  
  5253. .LP
  5254.  
  5255.  
  5256.  
  5257. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  5258. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  5259.  
  5260. resend the SABM/SABME command and will restart Timer\ T1. After N2 attempts 
  5261. to reset the data link, the DCE will initiate appropriate higher layer 
  5262. recovery 
  5263.  
  5264. action and will enter the disconnected phase. The value of N2 is defined in
  5265.  
  5266. \(sc\ 2.4.8.4 below.
  5267.  
  5268. .LP
  5269.  
  5270. 2.4.7.3
  5271.  
  5272. The DCE may ask the DTE to reset the data link by transmitting an FRMR 
  5273. response (see \(sc\ 2.4.6.1 above). After transmitting an FRMR response, 
  5274.  
  5275. the DCE will enter the frame rejection condition.
  5276.  
  5277. .LP
  5278.  
  5279. The frame rejection condition is cleared when the DCE receives an SABM/SABME 
  5280. command, a DISC command, a FRMR response, or a DM response; or if 
  5281.  
  5282. the DCE transmits an SABM/SABME command, a DISC command, or a DM response.
  5283.  
  5284. Other commands received while in the frame rejection condition will cause 
  5285. the DCE to retransmit the FRMR response with the same information field 
  5286. as 
  5287.  
  5288. originally transmitted.
  5289.  
  5290. .LP
  5291.  
  5292. The DCE may start Timer\ T1 on transmission of the FRMR response. If
  5293.  
  5294. Timer\ T1 runs out before the frame rejection condition is cleared, the 
  5295. DCE may retransmit the FRMR response, and restart T1. After N2 attempts 
  5296. (time outs) to get the DTE to reset the data link, the DCE may reset the 
  5297. data link itself as described in \(sc\ 2.4.7.2 above. The value of N2 is 
  5298. defined in \(sc\ 2.4.8.4 below. 
  5299.  
  5300. .LP
  5301.  
  5302.  
  5303.  
  5304. In the frame rejection condition, I frames and supervisory frames will 
  5305. not be transmitted by the DCE. Also, received I frames and supervisory 
  5306. frames will be discarded by the DCE except for the observance of a P bit 
  5307. set to\ 1. 
  5308.  
  5309. When an additional FRMR response must be transmitted by the DCE as a result 
  5310. of the receipt of a P\ bit set to 1 while Timer\ T1 is running, Timer\ 
  5311. T1 will 
  5312.  
  5313. continue to run. Upon reception of an FRMR response (even during a frame
  5314.  
  5315. rejection condition), the DCE will initiate a resetting procedure by
  5316.  
  5317. transmitting an SABM/SABME command as described in \(sc\ 2.4.7.2 above, or will
  5318.  
  5319. transmit a DM response to ask the DTE to initiate the data link set\(hyup
  5320.  
  5321. procedure as described in \(sc\ 2.4.4.1 and enter the disconnected phase.
  5322.  
  5323. .LP
  5324.  
  5325. 2.4.8
  5326.  
  5327. \fIList of \fR 
  5328.  
  5329. \fILAPB system parameters\fR 
  5330.  
  5331. .LP
  5332.  
  5333. The DCE and DTE system parameters are as follows:
  5334.  
  5335. .LP
  5336.  
  5337.  
  5338.  
  5339. 2.4.8.1
  5340.  
  5341. \fITimer\fR 
  5342.  
  5343. \fIT1\fR 
  5344.  
  5345. .LP
  5346.  
  5347. The value of the DTE Timer T1 system parameter may be different
  5348.  
  5349. than the value of the DCE Timer T1 system parameter. These values shall 
  5350. be made known to both the DTE and the DCE, and agreed to for a period of 
  5351. time by both the DTE and the DCE. 
  5352.  
  5353. .LP
  5354.  
  5355. The period of Timer T1, at the end of which retransmission of a frame may 
  5356. be initiated (see \(sc\ 2.4.4 and \(sc\ 2.4.5 above for the DCE), shall 
  5357. take into account whether T1 is started at the beginning or the end of 
  5358. the transmission of a frame. 
  5359.  
  5360. .LP
  5361.  
  5362. The proper operation of the procedure requires that the transmitter's (DCE 
  5363. or DTE) Timer\ T1 be greater than the maximum time between transmission 
  5364. of a frame (SABM/SABME, DISC, I\ or supervisory command, or DM or FRMR 
  5365. response) 
  5366.  
  5367. and the reception of the corresponding frame returned as an answer to that
  5368.  
  5369. frame (UA, DM or acknowledging frame). Therefore, the receiver (DCE or DTE)
  5370.  
  5371. should not delay the response or acknowledging frame returned to one of the
  5372.  
  5373. above frames by more than a value\ T2, where T2 is a system parameter (see
  5374.  
  5375. \(sc\ 2.4.8.2).
  5376.  
  5377. .LP
  5378.  
  5379.  
  5380.  
  5381. The DCE will not delay the response or acknowledging frame returned to 
  5382. one of the above DTE frames by more than a period\ T2. 
  5383.  
  5384. .LP
  5385.  
  5386. 2.4.8.2
  5387.  
  5388. \fIParameter T2\fR 
  5389.  
  5390. .LP
  5391.  
  5392. The value of the DTE parameter T2 may be different than the value of the 
  5393. DCE parameter T2. These values shall be made known to both the DTE and 
  5394. the DCE, and agreed to for a period of time by both the DTE and the DCE. 
  5395.  
  5396. .LP
  5397.  
  5398.  
  5399.  
  5400. The period of parameter T2 shall indicate the amount of time
  5401.  
  5402. available at the DCE or DTE before the acknowledging frame must be initiated 
  5403. in order to ensure its receipt by the DTE or DCE, respectively, prior to 
  5404. Timer\ T1 running out at the DTE or DCE (parameter\ T2\ <\ Timer\ T1). 
  5405.  
  5406. .LP
  5407.  
  5408. \fINote\fR 
  5409.  
  5410. \ \(em\ The period of parameter T2 shall take into account the
  5411.  
  5412. following timing factors: the transmission time of the acknowledging frame, 
  5413. the propagation time over the access data link, the stated processing times 
  5414. at the DCE and the DTE, and the time to complete the transmission of the 
  5415. frame(s) in the DCE or DTE transmit queue that are neither displaceable 
  5416. or modifiable in an orderly manner. 
  5417.  
  5418. .LP
  5419.  
  5420.  
  5421.  
  5422. Given a value for Timer T1 for the DTE or DCE, the value of parameter T2 
  5423. at the DCE or DTE, respectively, must be no larger than T1 minus\ 2 times 
  5424. the propagation time over the access data link, minus the frame processing 
  5425. time at the DCE, minus the frame processing time at the DTE, and minus 
  5426. the transmission time of the acknowledging frame by the DCE or DTE, respectively. 
  5427.  
  5428. .LP
  5429.  
  5430.  
  5431.  
  5432. 2.4.8.3
  5433.  
  5434. \fITimer T3\fR 
  5435.  
  5436. .LP
  5437.  
  5438. The DCE shall support a Timer T3 system parameter, the value of
  5439.  
  5440. which shall be made known to the DTE.
  5441.  
  5442. .LP
  5443.  
  5444. The period of Timer T3, at the end of which an indication of an
  5445.  
  5446. observed excessively long idle channel state condition is passed to the 
  5447. Packet Layer, shall be sufficiently greater than the period of the DCE 
  5448. Timer T1 
  5449.  
  5450. (i.e.\ T3\ >\ T1) so that the expiration of T3 provides the desired level of
  5451.  
  5452. assurance that the data link channel is in a non\(hyactive, non\(hyoperational 
  5453. state, and is in need of data link set\(hyup before normal data link operation 
  5454. can 
  5455.  
  5456. resume.
  5457.  
  5458. .LP
  5459.  
  5460. 2.4.8.4
  5461.  
  5462. \fIMaximum number of attempts\fR 
  5463.  
  5464. \fIto complete a\fR 
  5465.  
  5466.  
  5467.  
  5468. \fItransmission N2\fR 
  5469.  
  5470. .LP
  5471.  
  5472.  
  5473.  
  5474. The value of the DTE N2 system parameter may be different than the value 
  5475. of the DCE N2 system parameter. These values shall be made known to both 
  5476. the DTE and the DCE, and agreed to for a period of time by both the DTE 
  5477. and the DCE. 
  5478.  
  5479. .LP
  5480.  
  5481. The value of N2 shall indicate the maximum number of attempts made by the 
  5482. DCE or DTE to complete the successful transmission of a frame to the DTE 
  5483. or DCE, respectively. 
  5484.  
  5485. .LP
  5486.  
  5487. 2.4.8.5
  5488.  
  5489. \fIMaximum number of bits in an I frame N1\fR 
  5490.  
  5491. .LP
  5492.  
  5493. The value of the DTE N1 system parameter may be different than the value 
  5494. of the DCE N1 system parameter. These values shall be made known to both 
  5495. the DTE and the DCE. 
  5496.  
  5497. .LP
  5498.  
  5499. The values of N1 shall indicate the maximum number of bits in an
  5500.  
  5501. I\ frame (excluding flags and 0\ bits inserted for transparency) that the 
  5502. DCE or DTE is willing to accept from the DTE or DCE, respectively. 
  5503.  
  5504. .LP
  5505.  
  5506. In order to allow for universal operation, a DTE should support a
  5507.  
  5508. value of DTE N1 which is not less than 1080\ bits (135\ octets). DTEs should 
  5509. be aware that the network may transmit longer packets (see \(sc\ 5.2), 
  5510. that may result in a data link layer problem. 
  5511.  
  5512. .LP
  5513.  
  5514.  
  5515.  
  5516. All networks shall offer to a DTE which requires it, a value of DCE N1 
  5517. which is greater than or equal to 2072\ bits (259\ octets) plus the length 
  5518. of the address, control and FCS fields at the DTE/DCE interface, and greater 
  5519. than or equal to the maximum length of the data packets which may cross 
  5520. the DTE/DCE 
  5521.  
  5522. interface plus the length of the address, control and FCS fields at the 
  5523. DTE/DCE interface. 
  5524.  
  5525. .LP
  5526.  
  5527. Appendix II provides a description of how the values stated above are  derived.
  5528.  
  5529. .LP
  5530.  
  5531. 2.4.8.6
  5532.  
  5533. \fIMaximum number of \fR 
  5534.  
  5535. \fIoutstanding I frames k\fR 
  5536.  
  5537. .LP
  5538.  
  5539. The value of the DTE k system parameter shall be the same as the
  5540.  
  5541. value of the DCE k system parameter. This value shall be agreed to for a
  5542.  
  5543. period of time by both the DTE and the DCE.
  5544.  
  5545. .LP
  5546.  
  5547. The value of k shall indicate the maximum number of sequentially
  5548.  
  5549. numbered I\ frames that the DTE or DCE may have outstanding
  5550.  
  5551. (i.e.\ unacknowledged) at any given time. The value of k shall never exceed
  5552.  
  5553. seven for modulo\ 8 operation, or one hundred and twenty\(hyseven for modulo\ 
  5554. 128 
  5555.  
  5556. operation. All networks (DCEs) shall support a value of seven. Other values 
  5557. of k (less than and greater than seven) may also be supported by networks 
  5558.  
  5559. (DCEs).
  5560.  
  5561. .LP
  5562.  
  5563. .LP
  5564.  
  5565. \fBMONTAGE : \(sc 2.5 de cette Recommandation sur le reste de cette page\fR 
  5566.  
  5567. .LP
  5568.  
  5569.  
  5570.  
  5571. .LP
  5572. .ad r
  5573. \fBTable [1/X.22] [T1.22], p.\fR 
  5574. .sp 1P
  5575. .RT
  5576. .ad b
  5577. .RT
  5578. .sp 1P
  5579. .LP
  5580. .sp 1
  5581. 2.4
  5582.     \fICall control and failure detection procedures\fR 
  5583. .sp 9p
  5584. .RT
  5585. .PP
  5586. \fICall control\fR \|and \fIfailure detection\fR \|procedures shall operate 
  5587. as specified in Recommendation\ X.21 on each subscriber channel independent 
  5588. of other subscriber channels. 
  5589. .RT
  5590. .sp 1P
  5591. .LP
  5592. 2.4.1
  5593.     \fIQuiescent states\fR 
  5594. .sp 9p
  5595. .RT
  5596. .PP
  5597. The quiescent states shall be in accordance with
  5598. Recommendation\ X.21, \(sc\ 2.5.
  5599. .bp
  5600. .RT
  5601. .sp 1P
  5602. .LP
  5603. 2.4.2
  5604.     \fIFailure detection\fR 
  5605. .sp 9p
  5606. .RT
  5607. .PP
  5608. See Recommendation\ X.27, \(sc\ 9 for association of the
  5609. receiver circuit failure detection types.
  5610. .RT
  5611. .sp 1P
  5612. .LP
  5613. 2.4.2.1
  5614.     \fIFault conditions on interchange circuits\fR 
  5615. .sp 9p
  5616. .RT
  5617. .PP
  5618. The DTE should interpret a fault condition on circuit\ R as r\ =\ 0 on 
  5619. all channels using failure detection type\ 2, a fault condition on circuit\ 
  5620. I as i\ =\ OFF on all channels using failure detection type\ 1, and a fault 
  5621. condition on both circuits\ R and\ I as r\ =\ 0, i\ =\ OFF \fI(DCE not 
  5622. ready)\fR on all channels. 
  5623. .PP
  5624. Alternatively a fault condition on one of these circuits,
  5625. R or I, may be interpreted by the DTE as r\ =\ 0, i\ =\ OFF
  5626. \fI(DCE not ready)\fR , using failure detection type\ 3.
  5627. .PP
  5628. The DCE will interpret a fault condition on circuit\ T as t\ =\ 0
  5629. on all channels using failure detection type\ 2, a fault
  5630. condition on circuit\ C as c\ =\ OFF on all channels using failure
  5631. detection type\ 1, and a fault condition on both circuits\ T
  5632. and\ C as t\ =\ 0, c\ =\ OFF on all channels \fI(DTE uncontrolled not\fR 
  5633. \fIready)\fR .
  5634. .PP
  5635. Alternatively, a fault condition on one of these circuits,
  5636. T or C, may be interpreted by the DCE as t\ =\ 0, c\ =\ OFF
  5637. \fI(DTE uncontrolled not ready)\fR , using failure detection
  5638. type\ 3.
  5639. .RT
  5640. .sp 1P
  5641. .LP
  5642. 2.4.2.2
  5643.     \fIDCE fault condition\fR 
  5644. .sp 9p
  5645. .RT
  5646. .PP
  5647. Indication of the DCE failure condition shall be in accordance
  5648. with Recommendation\ X.21, \(sc\ 2.6.2.
  5649. .PP
  5650. A DCE failure condition may effect all subscriber channels
  5651. at the DTE/DCE interface.
  5652. .RT
  5653. .sp 1P
  5654. .LP
  5655. 2.4.2.3
  5656.     \fISignal element timing provision\fR 
  5657. .sp 9p
  5658. .RT
  5659. .PP
  5660. The provision of signal element timing shall be in accordance
  5661. with Recommendation\ X.21, \(sc\ 2.6.3.
  5662. .RT
  5663. .sp 1P
  5664. .LP
  5665. 2.4.3
  5666.     \fIElements of the call control phase\fR 
  5667. .sp 9p
  5668. .RT
  5669. .PP
  5670. The elements of the call control phase, for each channel, shall be in accordance 
  5671. with Recommendation\ X.21, \(sc\ 4 with the exception that byte 
  5672. timing is not used.
  5673. .RT
  5674. .sp 1P
  5675. .LP
  5676. 2.4.4
  5677.     \fIData transfer phase\fR 
  5678. .sp 9p
  5679. .RT
  5680. .PP
  5681. The data transfer phase, for each channel, shall be in accordance with 
  5682. Recommendation\ X.21, \(sc\ 5. 
  5683. .RT
  5684. .sp 1P
  5685. .LP
  5686. 2.4.5
  5687.     \fIClearing phase\fR 
  5688. .sp 9p
  5689. .RT
  5690. .PP
  5691. The clearing phase, for each channel, shall be in accordance with Recommendation\ 
  5692. X.21, \(sc\ 6. 
  5693. .RT
  5694. .sp 2P
  5695. .LP
  5696. \fB3\fR     \fBAlignment of call control characters\fR \fBand\fR 
  5697. \fBerror\fR 
  5698. \fBchecking\fR 
  5699. .sp 1P
  5700. .RT
  5701. .sp 1P
  5702. .LP
  5703. \fB
  5704. 3.1
  5705.     \fICharacter alignment\fR 
  5706. .sp 9p
  5707. .RT
  5708. .LP
  5709. .PP
  5710. For the interchange of information between the DTE and the DCE for call 
  5711. control purposes, it is necessary to establish correct alignment of 
  5712. characters. Each sequence of call control characters to and from the DCE 
  5713. shall be preceded by two or more contiguous\ 1/6 (\*QSYN\*U) characters. 
  5714. .RT
  5715. .PP
  5716. 3.1.1
  5717. Certain Administrations will require the DTE to align call
  5718. control characters transmitted from the DTE to either SYN characters delivered 
  5719. to the DTE or to the signals on the \fIframe start identification\fR interchange 
  5720. circuit\ (F).
  5721. .sp 9p
  5722. .RT
  5723. .PP
  5724. 3.1.2
  5725. Certain Administrations will permit call control characters to be transmitted 
  5726. from the DTE independently of the SYN characters delivered to 
  5727. the DTE.
  5728. .bp
  5729. .sp 9p
  5730. .RT
  5731. .sp 1P
  5732. .LP
  5733. 3.2
  5734.     \fIError checking\fR 
  5735. .sp 9p
  5736. .RT
  5737. .PP
  5738. Odd parity according to Recommendation\ X.4 applies for the
  5739. interchange of IA5 characters for call control purposes.
  5740. .RT
  5741. .sp 2P
  5742. .LP
  5743. \fB4\fR     \fBMultiplex structure\fR 
  5744. .sp 1P
  5745. .RT
  5746. .PP
  5747. Depending on the multiplex structure used by the network, the
  5748. structure of the multiplexed bit stream will be one of two different
  5749. types.
  5750. .RT
  5751. .sp 1P
  5752. .LP
  5753. 4.1
  5754.     \fIMultiplex structure in networks providing 6\ bit\(hybytes\fR 
  5755. .sp 9p
  5756. .RT
  5757. .PP
  5758. The DCE shall deliver to and receive from the DTE a 6\(hybit byte
  5759. interleaved multiplexed bit stream containing a number of subscriber channels. 
  5760. The allocation of the subscriber channels should be: 
  5761. .RT
  5762. .ce 1000
  5763. \ 5\ channels\ (phases)\ of\ 9600\ bit/s\ or
  5764. .ce 0
  5765. .ce 1000
  5766. 10\ channels\ \ \ \ \ \ \ \ of\ 4800\ bit/s\ or
  5767. .ce 0
  5768. .ce 1000
  5769. 20\ channels\ \ \ \ \ \ \ \ of\ 2400\ bit/s\ or
  5770. .ce 0
  5771. .sp 1P
  5772. .ce 1000
  5773. 80\ channels\ \ \ \ \ \ \ \ of\ \ 600\ bit/s\ or
  5774. .ce 0
  5775. .sp 1P
  5776. .LP
  5777. an appropriate mix of channel data signalling rates having an aggregate bit
  5778. rate of 48\ kbit/s.
  5779. .PP
  5780. The multiplex structure is divided into five phases of 9600\ bit/s, where 
  5781. each phase shall be homogeneous with regard to the subscriber data 
  5782. signalling rates.
  5783. .sp 1P
  5784. .LP
  5785. 4.1.1
  5786.     \fIInterchange circuits and\fR 
  5787. \fIinterface signalling\fR \fIscheme\fR 
  5788. .sp 9p
  5789. .RT
  5790. .PP
  5791. The interchange circuits between the DTE and the DCE are shown in Figure\ 
  5792. 1/X.22 and a timing diagram for the signals is given in 
  5793. Figure\ 2/X.22.
  5794. .PP
  5795. The signalling over the interchange circuits is as follows.
  5796. .PP
  5797. The transmit (T) and receive (R) circuits will convey in one
  5798. time slot six consecutive user data bits for one subscriber
  5799. channel (see Figure\ 2/X.22).
  5800. .PP
  5801. The control (C) and indication (I) circuits will convey the
  5802. appropriate signal levels in accordance with Recommendation\ X.21 for the 
  5803. data channel which in the same time slot have bits conveyed over the respective 
  5804. data circuits. 
  5805. .PP
  5806. Change of condition on circuit C shall take place at the OFF to ON
  5807. transition of circuit\ S at the beginning of the first bit in the 6\(hybit 
  5808. byte. 
  5809. The condition on circuit\ C shall be steady for the whole 6\(hybit byte.
  5810. .PP
  5811. Change of condition on circuit I will take place at the OFF to ON
  5812. transition of circuit\ S at the beginning of the first bit in the 6\(hybit byte
  5813. and the condition will be steady for the whole 6\(hybit byte.
  5814. .PP
  5815. The signal element timing (S) will operate for continuous isochronous transmission 
  5816. at 48\ kbit/s. 
  5817. .PP
  5818. The \fIframe start identification\fR \| circuit (F) will indicate the frame 
  5819. start with an OFF condition appearing in the last bit of each frame. For 
  5820. networks using Recommendation\ X.50 division\ 2 multiplexing, the frame
  5821. length will be 480\ bits. For networks using Recommendation\ X.50 division\ 3
  5822. multiplexing in which the user rate of 600\ bit/s is not included, the frame
  5823. length will be 120\ bits.
  5824. .RT
  5825. .sp 1P
  5826. .LP
  5827. 4.2
  5828.     \fIMultiplex structure in networks providing 8\(hybit bytes\fR 
  5829. .sp 9p
  5830. .RT
  5831. .PP
  5832. The DCE shall deliver to and receive from the DTE an 8\(hybit byte
  5833. interleaved multiplexed bit stream containing a number of subscriber channels. 
  5834. The allocation of the subscriber channels should be: 
  5835. .RT
  5836. .ce 1000
  5837. \ 5\ channels\ (phases)\ of\ 9600\ bit/s\ or
  5838. .ce 0
  5839. .ce 1000
  5840. 10\ channels\ 
  5841. (phases)
  5842. \ of\ 4800\ bit/s\ or
  5843. .ce 0
  5844. .ce 1000
  5845. 20\ channels\ 
  5846. (phases)
  5847. \ of\ 2400\ bit/s\ or
  5848. .ce 0
  5849. .sp 1P
  5850. .ce 1000
  5851. 80\ channels\ 
  5852. (phases)
  5853. \ of\ \ 600\ bit/s\ or
  5854. .ce 0
  5855. .sp 1P
  5856. .LP
  5857. an appropriate mix of channel data signalling rates having an aggregate bit
  5858. rate of 48\ kbit/s.
  5859. .PP
  5860. The multiplex bit stream is divided into five phases of
  5861. 9600\ bit/s, where each phase shall be homogeneous with regard to the subscriber 
  5862. data signalling rates. 
  5863. .bp
  5864. .sp 1P
  5865. .LP
  5866. 4.2.1
  5867.     \fIInterchange circuits and interface signalling scheme\fR 
  5868. .sp 9p
  5869. .RT
  5870. .PP
  5871. The interchange circuits between the DTE and DCE are shown in
  5872. Figure\ 1/X.22 and a timing diagram for the signals is given in Figure\ 
  5873. 3/X.22. The signalling over the interchange circuits is as follows. 
  5874. .PP
  5875. The transmit (T) and receive (R) circuits will convey in one time slot 
  5876. eight consecutive user data bits for one subscriber channel (see 
  5877. Figure\ 3/X.22).
  5878. .PP
  5879. The control (C) and indication (I) circuits will convey the
  5880. appropriate signal levels in accordance with Recommendation\ X.21 for the 
  5881. data channel which in the same time slot have bits conveyed over the respective 
  5882. data circuits.
  5883. .PP
  5884. Change of condition on circuit C shall take place at the OFF to ON
  5885. transition of circuit\ S at the beginning of the first bit in the 8\(hybit 
  5886. byte. 
  5887. The condition on circuit\ C shall be steady for the whole 8\(hybit byte.
  5888. .PP
  5889. Change of condition on circuit I will take place at the OFF to ON
  5890. transition of circuit\ S at the beginning of the first bit in the 8\(hybit byte
  5891. and the condition will be steady for the whole 8\(hybit byte.
  5892. .PP
  5893. The signal element timing (S) will operate for continuous isochronous transmission 
  5894. at 48\ kbit/s. 
  5895. .PP
  5896. The 
  5897. \fIframe start identification\fR \| circuit
  5898. (F) will indicate
  5899. the
  5900. frame start with an OFF condition appearing in the position of the last 
  5901. bit of each 640\(hybit frame. As an optional facility each frame start 
  5902. could be followed by a code which will indicate the actual channel allocation. 
  5903. This facility is for further study. 
  5904. .RT
  5905. .sp 2P
  5906. .LP
  5907. \fB5\fR     \fBTest loops\fR 
  5908. .sp 1P
  5909. .RT
  5910. .PP
  5911. Establishment of test loops for DTE tests and network maintenance is for 
  5912. further study. 
  5913. .RT
  5914. .LP
  5915. .rs
  5916. .sp 11P
  5917. .ad r
  5918. \fBFigure 1/X.22, p.\fR 
  5919. .sp 1P
  5920. .RT
  5921. .ad b
  5922. .RT
  5923. .LP
  5924. .rs
  5925. .sp 17P
  5926. .ad r
  5927. \fBFigure 2/X.22, p.\fR 
  5928. .sp 1P
  5929. .RT
  5930. .ad b
  5931. .RT
  5932. .LP
  5933. .bp
  5934. .LP
  5935. .rs
  5936. .sp 22P
  5937. .ad r
  5938. \fBFigure 3/X.22, p.\fR 
  5939. .sp 1P
  5940. .RT
  5941. .ad b
  5942. .RT
  5943. .sp 2P
  5944. .LP
  5945. \fBRecommendation\ X.24\fR 
  5946. .RT
  5947. .sp 2P
  5948. .ce 1000
  5949. \fBLIST\ OF\fR \ 
  5950. \fBDEFINITIONS\ FOR\ INTERCHANGE\ CIRCUITS\ BETWEEN\ DATA\fR 
  5951. .EF '%    Fascicle\ VIII.2\ \(em\ Rec.\ X.24''
  5952. .OF '''Fascicle\ VIII.2\ \(em\ Rec.\ X.24    %'
  5953. .ce 0
  5954. .ce 1000
  5955. \fBTERMINAL\ EQUIPMENT\ (DTE)\ AND\ DATA\ CIRCUIT\(hyTERMINATING\fR 
  5956. .ce 0
  5957. .sp 1P
  5958. .ce 1000
  5959. \fBEQUIPMENT\ (DCE)\fR \fB\ ON\ PUBLIC\ DATA\ NETWORKS\fR 
  5960. .ce 0
  5961. .sp 1P
  5962. .ce 1000
  5963. \fI(Geneva, 1976; amended at Geneva, 1980, Malaga\(hyTorremolinos, 1984,\fR 
  5964. .sp 9p
  5965. .RT
  5966. .ce 0
  5967. .sp 1P
  5968. .ce 1000
  5969. \fIand Melbourne, 1988)\fR 
  5970. .ce 0
  5971. .sp 1P
  5972. .sp 2P
  5973. .LP
  5974.     The\ CCITT,
  5975. .sp 1P
  5976. .RT
  5977. .sp 1P
  5978. .LP
  5979. \fIconsidering that\fR 
  5980. .sp 9p
  5981. .RT
  5982. .PP
  5983. (a)
  5984. the interface between DTE and DCE on public data neworks requires, in addition 
  5985. to the electrical and functional characteristics of the interchange circuits, 
  5986. the definition of procedural characteristics for call 
  5987. control functions and selection of the facilities according to
  5988. Recommendation\ X.2;
  5989. .PP
  5990. (b)
  5991. the functions of the circuits defined in
  5992. Recommendation\ V.24 are based on the requirements of data transmission 
  5993. over the general telephone network and are not appropriate for use at DTE/DCE 
  5994. interfaces in public data networks; 
  5995. .sp 1P
  5996. .LP
  5997. \fIunanimously declares\fR 
  5998. .sp 9p
  5999. .RT
  6000. .PP
  6001. a Recommendation to include the list of definitions of
  6002. interchange circuits for use in public data networks is required.
  6003. .bp
  6004. .sp 2P
  6005. .LP
  6006. \fB1\fR     \fBScope\fR 
  6007. .sp 1P
  6008. .RT
  6009. .PP
  6010. 1.1
  6011. This Recommendation applies to the functions of the interchange circuits 
  6012. provided at the interface between DTE and DCE of data networks 
  6013. for the transfer of binary data, call control signals and timing signals.
  6014. .sp 9p
  6015. .RT
  6016. .PP
  6017. For any type of practical equipment, a selection will be made from the 
  6018. range of interchange circuits defined in this Recommendation, as 
  6019. appropriate. The actual interchange circuits to be used in a particular 
  6020. DCE for a user class of service according to Recommendation\ X.1 and defined 
  6021. user 
  6022. facilities according to Recommendation\ X.2, are those indicated in the
  6023. relevant Recommendation for the procedural characteristics of the interface,
  6024. e.g.,\ Recommendation\ X.20 or\ X.21.
  6025. .PP
  6026. To enable a standard DTE to be developed, the use and termination by the 
  6027. DTE of certain circuits even when implemented in the DCE are not mandatory. 
  6028. This is covered by the individual interface Recommendations. 
  6029. .PP
  6030. The interchange circuits defined for the transfer of binary data are also 
  6031. used for the exchange of call control signals. 
  6032. .PP
  6033. The electrical characteristics of the interchange circuits are
  6034. detailed in the appropriate Recommendation for electrical characteristics of
  6035. interchange circuits. The application of those characteristics for a particular 
  6036. DCE is specified in the Recommendation for the procedural characteristics 
  6037. of the interface.
  6038. .RT
  6039. .PP
  6040. 1.2
  6041. The range of interchange circuits defined in this
  6042. Recommendation is applicable to the range of services which could be offered 
  6043. on a public data network, e.g.,\ circuit switching services (synchronous 
  6044. and 
  6045. start/stop), telex service, packet switching services, message registration 
  6046. and retransmission service and facsimile service. 
  6047. .sp 9p
  6048. .RT
  6049. .sp 2P
  6050. .LP
  6051. \fB2\fR     \fBLine of demarcation\fR 
  6052. .sp 1P
  6053. .RT
  6054. .LP
  6055. .PP
  6056. The interface between DTE and DCE is located at a connector which is the 
  6057. interchange point between these two classes of equipment shown in 
  6058. Figure\ 1/X.24.
  6059. .RT
  6060. .LP
  6061. .rs
  6062. .sp 15P
  6063. .ad r
  6064. \fBFigure 1/X.24, p.\fR 
  6065. .sp 1P
  6066. .RT
  6067. .ad b
  6068. .RT
  6069. .PP
  6070. 2.1
  6071. The connector will not necessarily be physically attached to
  6072. the DCE and may be mounted in a fixed position near the DTE. The female part
  6073. of the connector belongs to the DCE.
  6074. .sp 9p
  6075. .RT
  6076. .PP
  6077. 2.2
  6078. An interconnecting cable will normally be provided together
  6079. with the DTE. The cable length is limited by electrical parameters specified
  6080. in the appropriate Recommendations for the electrical characteristics of the
  6081. interchange circuits.
  6082. .bp
  6083. .sp 9p
  6084. .RT
  6085. .sp 2P
  6086. .LP
  6087. \fB3\fR     \fBDefinition of\fR 
  6088. \fBinterchange circuits\fR 
  6089. .sp 1P
  6090. .RT
  6091. .PP
  6092. A list of the data network series interchange circuits is presented in 
  6093. tabular form in Table\ 1/X.24. 
  6094. .RT
  6095. .ce
  6096. .line
  6097. .ce
  6098. \fBTable 1/X.24 [T1.24], p.\fR 
  6099. .ce
  6100. 3.1
  6101. .ce
  6102. \fICircuit\ G\ \(em\ Signal ground or common return\fR 
  6103.  
  6104. .LP
  6105.  
  6106. This conductor establishes the signal common reference potential
  6107.  
  6108. for unbalanced double\(hycurrent interchange circuits with electrical
  6109.  
  6110. characteristics according to Recommendation\ V.28. In the case of
  6111.  
  6112. interchange circuits according to Recommendations\ V.10 and\ V.11, it
  6113.  
  6114. interconnects the zero volt reference points of a generator and a receiver 
  6115. to reduce environmental signal interference, if required. 
  6116.  
  6117. .LP
  6118.  
  6119. Within the DCE, this conductor shall be brought to one point,
  6120.  
  6121. protective ground or earth, by means of a metallic strap within the equipment. 
  6122. This metallic strap can be connected or removed at installation, as may 
  6123. be 
  6124.  
  6125. required, to minimize the introduction of noise into electronic circuitry 
  6126. or to meet applicable regulations. 
  6127.  
  6128. .LP
  6129.  
  6130. \fINote\fR 
  6131.  
  6132. \ \(em\ Where a shielded interconnecting cable is used at the
  6133.  
  6134. interface, the shield may be connected either to circuit\ G, or to protective
  6135.  
  6136. ground in accordance with national regulations. Protective ground may be
  6137.  
  6138. further connected to external grounds as required by applicable electrical
  6139.  
  6140. safety regulations.
  6141.  
  6142. .LP
  6143.  
  6144.  
  6145.  
  6146. For unbalanced interchange circuits with electrical characteristics in 
  6147. accordance with Recommendation\ V.10, two common\(hyreturn conductors are 
  6148. required, one for each direction of signalling, each conductor being connected 
  6149. to ground only on the generator side of the interface. Where used, these 
  6150. shall be 
  6151.  
  6152. designated circuits\ Ga and\ Gb, and they are defined as follows:
  6153.  
  6154. .LP
  6155.  
  6156.  
  6157.  
  6158. \fICircuit\ Ga\ \(em\ DTE common return\fR 
  6159.  
  6160. .LP
  6161.  
  6162. This conductor is connected to the DTE circuit common and is used
  6163.  
  6164. as the reference potential for the unbalanced\ X.26 type interchange circuit
  6165.  
  6166. receivers within the DCE.
  6167.  
  6168. .LP
  6169.  
  6170. \fICircuit\ Gb\ \(em\ DCE common return\fR 
  6171.  
  6172. .LP
  6173.  
  6174. This conductor is connected to the DCE circuit common and is used
  6175.  
  6176. as the reference potential for the unbalanced\ X.26 type interchange circuit
  6177.  
  6178. receivers within the DTE.
  6179.  
  6180. .LP
  6181.  
  6182. 3.2
  6183.  
  6184. \fICircuit\ T\ \(em\ Transmit\fR 
  6185.  
  6186. .LP
  6187.  
  6188. \fIDirection:\fR 
  6189.  
  6190. To DCE
  6191.  
  6192. .LP
  6193.  
  6194. The binary signals originated by the DTE to be transmitted during the data 
  6195. transfer phase via the data circuit to one or more remote DTEs are 
  6196.  
  6197. transferred on this circuit to the DCE.
  6198.  
  6199. .LP
  6200.  
  6201.  
  6202.  
  6203.  
  6204.  
  6205. This circuit also transfers the call control signals originated by the 
  6206. DTE, to be transmitted to the DCE in the call establishment and other call 
  6207.  
  6208. control phases as specified by the relevant Recommendations for the procedural 
  6209. characteristic of the interface. 
  6210.  
  6211. .LP
  6212.  
  6213. The DCE monitors this circuit for detection of electrical circuit
  6214.  
  6215. fault conditions, according to the specifications of the electrical
  6216.  
  6217. characteristics of the interface. A circuit fault is to be interpreted 
  6218. by the DCE as defined in the Recommendation for the procedural characteristics 
  6219. of 
  6220.  
  6221. the interface.
  6222.  
  6223. .LP
  6224.  
  6225. 3.3
  6226.  
  6227. \fICircuit\ R\ \(em\ Receive\fR 
  6228.  
  6229. .LP
  6230.  
  6231. \fIDirection:\fR 
  6232.  
  6233. \ From DCE
  6234.  
  6235. .LP
  6236.  
  6237. The binary signals sent by the DCE as received during the data
  6238.  
  6239. transfer phase from a remote DTE, are transferred on this circuit to the DTE.
  6240.  
  6241. .LP
  6242.  
  6243.  
  6244.  
  6245. This circuit also transfers the call control signals sent by the DCE as 
  6246. received during the call establishment and other call control phases as 
  6247.  
  6248. specified by the relevant Recommendations for the procedural characteristics 
  6249. of the interface. 
  6250.  
  6251. .LP
  6252.  
  6253.  
  6254.  
  6255. The DTE monitors this circuit for detection of electrical circuit
  6256.  
  6257. fault conditions, according to the specifications of the electrical
  6258.  
  6259. characteristics of the interface. A circuit fault is to be interpreted 
  6260. by the DTE as defined in the Recommendation for the procedural characteristics 
  6261. of 
  6262.  
  6263. the interface.
  6264.  
  6265. .LP
  6266.  
  6267. 3.4
  6268.  
  6269. \fICircuit\ C\ \(em\ Control\fR 
  6270.  
  6271. .LP
  6272.  
  6273. \fIDirection:\fR 
  6274.  
  6275. \ To DCE
  6276.  
  6277. .LP
  6278.  
  6279. Signals on this circuit control the DCE for a particular signalling process.
  6280.  
  6281. .LP
  6282.  
  6283. Representation of a control signal requires additional coding of
  6284.  
  6285. circuit\ T\(hy\fITransmit\fR 
  6286.  
  6287. \|as specified in the relevant Recommendation for the
  6288.  
  6289. procedural characteristics of the interface. During the data phase, this
  6290.  
  6291. circuit shall remain ON. During the call control phases, the condition 
  6292. of this circuit shall be as specified in the relevant Recommendation for 
  6293. the procedural characteristics of the interface. 
  6294.  
  6295. .LP
  6296.  
  6297. \fINote\fR 
  6298.  
  6299. \ \(em\ After appropriate selection of special user facilities (not yet 
  6300. defined), it might be required to change the ON condition after entering 
  6301.  
  6302. the data phase in accordance with the regulations for the use of these
  6303.  
  6304. facilities. This subject is for further study.
  6305.  
  6306. .LP
  6307.  
  6308. The DCE monitors this circuit for detection of electrical circuit
  6309.  
  6310. fault conditions, according to the specifications of the electrical
  6311.  
  6312. characteristics of the interface. A circuit fault is to be interpreted 
  6313. by the DCE as defined in the Recommendation for the procedural characteristics 
  6314. of 
  6315.  
  6316. the interface.
  6317.  
  6318. .LP
  6319.  
  6320. 3.5
  6321.  
  6322. \fICircuit\ I\ \(em\ Indication\fR 
  6323.  
  6324. .LP
  6325.  
  6326. \fIDirection:\fR 
  6327.  
  6328. \ From DCE
  6329.  
  6330. .LP
  6331.  
  6332. Signals on this circuit indicate to the DTE the state of the call control 
  6333. process. 
  6334.  
  6335. .LP
  6336.  
  6337. Representation of a control signal requires additional coding of
  6338.  
  6339. circuit\ R\(hy\fIReceive\fR 
  6340.  
  6341. , as specified in the relevant Recommendation for the
  6342.  
  6343. procedural characteristics of the interface. The ON condition of this circuit 
  6344. signifies that signals on circuit\ R contain information from the distant 
  6345. DTE. The OFF condition signifies a control signalling condition which is 
  6346. defined by the bit sequence on circuit\ R as specified by the procedural 
  6347. characteristics 
  6348.  
  6349. of the interface.
  6350.  
  6351. .LP
  6352.  
  6353.  
  6354.  
  6355. The DTE monitors this circuit for detection of electrical circuit
  6356.  
  6357. fault conditions, according to the specifications of the electrical
  6358.  
  6359. characteristics of the interface. A circuit fault is to be interpreted 
  6360. by the DTE as defined in the Recommendation for the procedural characteristics 
  6361. of 
  6362.  
  6363. the interface.
  6364.  
  6365. .LP
  6366.  
  6367. \fINote\fR 
  6368.  
  6369. \ \(em\ For use with special user facilities (not yet defined) it
  6370.  
  6371. might be required to use the OFF condition after entering the data transfer
  6372.  
  6373. phase in accordance with the regulations for the use of these facilities.
  6374.  
  6375. This subject is for further study.
  6376.  
  6377. .LP
  6378.  
  6379. 3.6
  6380.  
  6381. \fICircuit\ S\ \(em\ \fR 
  6382.  
  6383. \fISignal element timing\fR 
  6384.  
  6385. .LP
  6386.  
  6387. \fIDirection:\fR 
  6388.  
  6389. \ From DCE
  6390.  
  6391. .LP
  6392.  
  6393. Signals on this circuit provide the DTE with signal element timing information. 
  6394. The condition of this circuit shall be ON and OFF for nominally 
  6395.  
  6396. equal periods of time. However, for burst isochronous operations, longer
  6397.  
  6398. periods of OFF condition may be permitted equal to an integer odd number of
  6399.  
  6400. the nominal period of the ON condition as specified by the relevant procedural 
  6401. characteristics of the interface. 
  6402.  
  6403. .LP
  6404.  
  6405.  
  6406.  
  6407.  
  6408.  
  6409. The DTE shall present a binary signal on circuit\ T\(hy\fITransmit\fR 
  6410.  
  6411. \|and a   condition on circuit\ C\(hy\fIControl\fR 
  6412.  
  6413. , in which the transitions nominally occur at the time of the transitions 
  6414. from OFF to ON condition of this circuit. 
  6415.  
  6416. .LP
  6417.  
  6418.  
  6419.  
  6420. The DCE presents a binary signal on circuit\ R\(hy\fIReceive\fR 
  6421.  
  6422. \|and a
  6423.  
  6424. condition on circuit\ I\(hy\fIIndication\fR 
  6425.  
  6426.  \|in which the transitions nominally occur at the time of the transitions 
  6427. from OFF to ON condition of this circuit. 
  6428.  
  6429. .LP
  6430.  
  6431.  
  6432.  
  6433. The transition from ON to OFF condition shall nominally indicate the centre 
  6434. of each signal element on circuit\ R. 
  6435.  
  6436. .LP
  6437.  
  6438. The DCE shall transfer signal element timing information on this
  6439.  
  6440. circuit across the interface at all times that the timing source is capable 
  6441. of generating this information. 
  6442.  
  6443. .LP
  6444.  
  6445. 3.7
  6446.  
  6447. \fICircuit\ B\ \(em\ \fR 
  6448.  
  6449. \fIByte timing\fR 
  6450.  
  6451. (see Note 2)
  6452.  
  6453. .LP
  6454.  
  6455. \fIDirection:\fR 
  6456.  
  6457. \ From DCE
  6458.  
  6459. .LP
  6460.  
  6461. Signals on this circuit provide the DTE with 8\(hybit byte timing
  6462.  
  6463. information. The condition of this circuit shall be OFF for nominally the
  6464.  
  6465. period of the ON condition of circuit\ S\(hy\fISignal element timing\fR 
  6466.  
  6467.  which indicates the last bit of an 8\(hybit byte and shall be ON at all 
  6468. other times within the 
  6469.  
  6470. period of the 8\(hybit byte.
  6471.  
  6472. .LP
  6473.  
  6474.  
  6475.  
  6476.  
  6477.  
  6478. During the call control phases, the call control characters and steady 
  6479. state conditions used for all information transfers between the DCE and 
  6480. the 
  6481.  
  6482. DTE, in either direction, shall be correctly aligned to the signals of
  6483.  
  6484. circuit\ B.
  6485.  
  6486. .LP
  6487.  
  6488. The DTE shall present the beginning of the first bit of each call
  6489.  
  6490. control character on circuit\ T\(hy\fITransmit\fR 
  6491.  
  6492. nominally at the time of the
  6493.  
  6494. OFF to ON transition of circuit\ S which follows the OFF to ON transition of
  6495.  
  6496. circuit\ B.
  6497.  
  6498. .LP
  6499.  
  6500. A change of condition of circuit\ C\(hy\fIControl\fR 
  6501.  
  6502. \|may occur at any
  6503.  
  6504. OFF to ON transition of circuit\ S, but it will be sampled in the DCE at the
  6505.  
  6506. time of the OFF to ON transition of circuit\ B, i.e., for evaluation of the
  6507.  
  6508. following call control character on circuit\ T.
  6509.  
  6510. .LP
  6511.  
  6512. The centre of the last bit of each call control character will be
  6513.  
  6514. presented by the DCE on circuit\ R\(hy\fIReceive\fR 
  6515.  
  6516. nominally at the time of the
  6517.  
  6518. OFF to ON transition of circuit\ B.
  6519.  
  6520. .LP
  6521.  
  6522. A change of condition of circuit\ I\(hy\fIIndication\fR 
  6523.  
  6524.  \|will occur nominally at the OFF to ON transition of circuit\ S which 
  6525. follows the OFF to ON 
  6526.  
  6527. transition of circuit\ B.
  6528.  
  6529. .LP
  6530.  
  6531.  
  6532.  
  6533.  
  6534.  
  6535. The DCE shall transfer byte timing information on this circuit across the 
  6536. interface at all times that the timing source is capable of generating 
  6537. this information. 
  6538.  
  6539. .LP
  6540.  
  6541. \fINote\ 1\fR 
  6542.  
  6543. \ \(em\ During the data transfer phase, DTEs communicating by
  6544.  
  6545. means of an 8\(hybit code may utilize the byte timing information for mutual
  6546.  
  6547. character alignment.
  6548.  
  6549. .LP
  6550.  
  6551. It is a prerequisite for the provision of this feature that
  6552.  
  6553. character alignment is preserved after the call has entered the data transfer 
  6554. phase and that the alignment obtained at one interface is synchronized 
  6555. to the alignment at the other interface. (This is only possible on some 
  6556. connections.) 
  6557.  
  6558. .LP
  6559.  
  6560. Furthermore, where this feature is available, a change of condition
  6561.  
  6562. on circuit\ C as defined above may result in an equivalent change in the
  6563.  
  6564. relative alignment on circuit\ I at the distant interface.
  6565.  
  6566. .LP
  6567.  
  6568. \fINote\ 2\fR 
  6569.  
  6570. \ \(em\ In some Recommendations for the procedural
  6571.  
  6572. characteristics of the interface (e.g.,\ X.21), the use and termination 
  6573. of this circuit by the DTE is not mandatory even when implemented in the 
  6574. DCE. 
  6575.  
  6576. .LP
  6577.  
  6578.  
  6579.  
  6580. 3.8
  6581.  
  6582. \fICircuit\ F\ \(em\ Frame start identification\fR 
  6583.  
  6584. .LP
  6585.  
  6586. \fIDirection:\fR 
  6587.  
  6588. \ From DCE
  6589.  
  6590. .LP
  6591.  
  6592. Signals on this circuit continuously provide the DTE with a
  6593.  
  6594. multiplex frame start indication when connected to a multiplexed DTE/DCE
  6595.  
  6596. interface.
  6597.  
  6598. .LP
  6599.  
  6600. The condition on this circuit shall be OFF for the nominal period of one 
  6601. bit, indicating the last bit of the multiplex frame. At other times the 
  6602.  
  6603. circuit shall remain\ ON.
  6604.  
  6605. .LP
  6606.  
  6607. The first data bit on subscriber channel 1 shall be transmitted or
  6608.  
  6609. received beginning nominally at the OFF to ON transition of circuit\ F.
  6610.  
  6611. .LP
  6612.  
  6613.  
  6614.  
  6615. 3.9
  6616.  
  6617. \fICircuit\ X\ \(em\ DTE transmit signal element timing\fR 
  6618.  
  6619. (see Note)
  6620.  
  6621. .LP
  6622.  
  6623.  
  6624.  
  6625. \fIDirection:\fR 
  6626.  
  6627. \ To DCE
  6628.  
  6629. .LP
  6630.  
  6631. Signals on this circuit provide signal element timing information for the 
  6632. transmit direction in cases where circuit\ S only provides signal 
  6633.  
  6634. element timing for the receive direction. The condition of this circuit 
  6635. shall be ON and OFF for nominally equal periods of time. However, for burst 
  6636.  
  6637. isochronous operations, longer periods of OFF condition may be permitted  
  6638.  
  6639. equal to an integer odd number of the nominal period of the ON condition as
  6640.  
  6641. specified by the relevant procedural characteristics of the interface.
  6642.  
  6643. .LP
  6644.  
  6645.  
  6646.  
  6647. The DTE shall present a binary signal on the circuit T\(hy\fITransmit\fR 
  6648.  
  6649. \|and a condition on circuit\ C\(hy\fIControl\fR 
  6650.  
  6651. , in which the transitions nominally occur at the time of the transitions 
  6652. from OFF to ON condition of this circuit. 
  6653.  
  6654. .LP
  6655.  
  6656.  
  6657.  
  6658. The transition from ON to OFF condition shall nominally indicate the centre 
  6659. of each signal element on circuit\ T. 
  6660.  
  6661. .LP
  6662.  
  6663. \fINote\fR 
  6664.  
  6665. \ \(em\ The use and termination of this circuit by the DCE is a
  6666.  
  6667. national matter.
  6668.  
  6669. .LP
  6670.  
  6671.  
  6672.  
  6673. \fBRecommendation X.25\fR 
  6674.  
  6675. .line
  6676.  
  6677. \fBINTERFACE\ BETWEEN\ DATA\ TERMINAL\ EQUIPMENT\ (DTE)\ AND\ DATA\fR 
  6678.  
  6679.  
  6680.  
  6681. \fBCIRCUIT\(hyTERMINATING\ EQUIPMENT\ (DCE)\ FOR\ TERMINALS\ OPERATING\fR 
  6682.  
  6683. \fBIN\ THE\ PACKET\ MODE\ AND\ CONNECTED\ TO\ PUBLIC\fR 
  6684.  
  6685. \fBDATA\ NETWORKS\ BY\ DEDICATED\ CIRCUIT\fR 
  6686.  
  6687. \fI(Geneva, 1976; amended at Geneva, 1980\fR 
  6688.  
  6689. ,
  6690.  
  6691. \fIMalaga\(hyTorremolinos, 1984 and Melbourne, 1988)\fR 
  6692.  
  6693.  
  6694.  
  6695. The establishment in various countries of public data networks providing 
  6696. packet switched data transmission services creates a need to produce standards 
  6697. to facilitate international interworking. 
  6698.  
  6699. .LP
  6700.  
  6701. The\ CCITT,
  6702.  
  6703. .LP
  6704.  
  6705. \fIconsidering\fR 
  6706.  
  6707. .LP
  6708.  
  6709.  
  6710.  
  6711. (a)
  6712.  
  6713. that Recommendation X.1 includes specific user classes of service for data 
  6714. terminal equipments operating in the packet mode, 
  6715.  
  6716. Recommendation\ X.2 defines user facilities, Recommendation\ X.10 defines
  6717.  
  6718. categories of access, Recommendations\ X.21 and X.21\|\fIbis\fR 
  6719.  
  6720. define DTE/DCE
  6721.  
  6722. physical layer interface characteristics, Recommendation\ X.92 defines the
  6723.  
  6724. hypothetical reference connections for packet switched data transmission
  6725.  
  6726. service and Recommendation\ X.96 defines \fIcall progress\fR 
  6727.  
  6728. signals;
  6729.  
  6730. .LP
  6731.  
  6732. (b)
  6733.  
  6734. that data terminal equipments operating in the packet
  6735.  
  6736. mode will send and receive network control information in the form of packets;
  6737.  
  6738. .LP
  6739.  
  6740.  
  6741.  
  6742. (c)
  6743.  
  6744. that certain data terminal equipments operating in the packet mode will 
  6745. use a 
  6746.  
  6747. packet interleaved synchronous data circuit
  6748.  
  6749. ;
  6750.  
  6751. .LP
  6752.  
  6753. (d)
  6754.  
  6755. the desirability of being able to use a single data
  6756.  
  6757. circuit to a Data Switching Exchange\ (DSE) for all user facilities;
  6758.  
  6759. .LP
  6760.  
  6761.  
  6762.  
  6763. (e)
  6764.  
  6765. that Recommendation X.2 specifies which of the various data transmission 
  6766. services and optional user facilities described in the 
  6767.  
  6768. present Recommendation are \*Qessential\*U and have thus to be made available
  6769.  
  6770. internationally, and which are not;
  6771.  
  6772. .LP
  6773.  
  6774.  
  6775.  
  6776. (f
  6777.  
  6778.  
  6779. the need for defining an international
  6780.  
  6781. Recommendation for the exchange between DTE and DCE of control information 
  6782. for the use of packet switched data transmission services; 
  6783.  
  6784. .LP
  6785.  
  6786. (g)
  6787.  
  6788. that this definition is made in Recommendation X.32 with regard to the 
  6789. access through a public switched telephone network, an integrated services 
  6790. digital network (ISDN), or a circuit switched public data network; 
  6791.  
  6792. .LP
  6793.  
  6794.  
  6795.  
  6796. (h)
  6797.  
  6798. that Recommendation X.31 defines the support of
  6799.  
  6800. packet\(hymode
  6801.  
  6802. terminal equipment by an integrated services digital network (ISDN);
  6803.  
  6804. .LP
  6805.  
  6806. (i)
  6807.  
  6808. that, when this Recommendation is used to support the
  6809.  
  6810. Network Service defined in Recommendation\ X.213, the physical, data link and
  6811.  
  6812. packet
  6813.  
  6814. layers correspond to the Physical, Data link and Network Layers respectively, 
  6815. as defined in Recommendation\ X.200; 
  6816.  
  6817. .LP
  6818.  
  6819. (j)
  6820.  
  6821. that this Recommendation includes all the features
  6822.  
  6823. necessary to support the services included in Recommendation\ X.213 as 
  6824. well as other features; that Recommendation\ X.223 defines the use of X.25 
  6825. packet layer protocol to provide the OSI connection mode Network service; 
  6826.  
  6827. .LP
  6828.  
  6829. (k)
  6830.  
  6831. that the necessary elements for an interface
  6832.  
  6833. Recommendation should be defined independently as:
  6834.  
  6835. .LP
  6836.  
  6837.  
  6838.  
  6839. \fIPhysical layer\fR 
  6840.  
  6841. \ \(em\ the mechanical, electrical, functional and
  6842.  
  6843. procedural characteristics to activate, maintain and deactivate
  6844.  
  6845. the physical link between the DTE and the DCE;
  6846.  
  6847. .LP
  6848.  
  6849. \fIData link layer\fR 
  6850.  
  6851. \ \(em\ the link access procedure for data interchange
  6852.  
  6853. across the link between the DTE and the DCE;
  6854.  
  6855. .LP
  6856.  
  6857. \fIPacket layer\fR 
  6858.  
  6859. \ \(em\ the packet format and control procedures for the
  6860.  
  6861. exchange of packets containing control information and user
  6862.  
  6863. data between the DTE and the DCE;
  6864.  
  6865. .LP
  6866.  
  6867. \fIunanimously declares\fR 
  6868.  
  6869. .LP
  6870.  
  6871.  
  6872.  
  6873. that for public data networks accessed via dedicated circuits by data terminal 
  6874. equipments operating in the packet mode: 
  6875.  
  6876. .LP
  6877.  
  6878. (1)
  6879.  
  6880. the mechanical, electrical, functional and procedural
  6881.  
  6882. characteristics to activate, maintain and deactivate the physical link 
  6883. between the DTE and the DCE should be as specified in \(sc\ 1 below, \fIDTE/DCE 
  6884. interface\fR 
  6885.  
  6886. \fIcharacteristics\fR 
  6887.  
  6888. ;
  6889.  
  6890. .LP
  6891.  
  6892. (2)
  6893.  
  6894. the link access procedure for data interchange across
  6895.  
  6896. the link between the DTE and the DCE should be as specified in \(sc\ 2 below,
  6897.  
  6898. \fILink access procedure across the DTE/DCE interface\fR 
  6899.  
  6900. ;
  6901.  
  6902. .LP
  6903.  
  6904. (3)
  6905.  
  6906. the packet layer procedures for the exchange of control information and 
  6907. user data at the DTE/DCE interface should be as specified in 
  6908.  
  6909. \(sc\ 3 below, \fIDescription of the packet layer DTE/DCE interface\fR 
  6910.  
  6911. ;
  6912.  
  6913. .LP
  6914.  
  6915. (4)
  6916.  
  6917. the procedures for virtual call and permanent virtual
  6918.  
  6919. circuit services should be as specified in \(sc\ 4 below, \fIProcedures 
  6920. for virtual\fR 
  6921.  
  6922. \fIcircuit services\fR 
  6923.  
  6924. ;
  6925.  
  6926. .LP
  6927.  
  6928.  
  6929.  
  6930. (5)
  6931.  
  6932. the format for packets exchanged between the DTE and the DCE should be 
  6933. as specified in \(sc\ 5 below, \fIPacket formats\fR 
  6934.  
  6935. ;
  6936.  
  6937. .LP
  6938.  
  6939. (6)
  6940.  
  6941. the procedures for optional user facilities should be as specified in \(sc\ 
  6942. 6 below, \fIProcedures for optional user facilities\fR 
  6943.  
  6944. ;
  6945.  
  6946. .LP
  6947.  
  6948. (7)
  6949.  
  6950. the formats for optional user facilities should be as
  6951.  
  6952. specified in \(sc\ 7 below, \fIFormats for facility fields and registration 
  6953. fields\fR 
  6954.  
  6955. .
  6956.  
  6957. .LP
  6958.  
  6959.  
  6960.  
  6961. \fINote\fR 
  6962.  
  6963. \ \(em\ This Recommendation fully specifies the behaviour of the DCE. In 
  6964. addition, a minimum set of requirements is specified for the DTE. 
  6965.  
  6966. Additional guidance for the design of DTEs is available in ISO standards
  6967.  
  6968. ISO\ 7776 (data link layer) and ISO\ 8208 (packet layer). It is not required 
  6969. by this Recommendation that these ISO standards be used. If using these 
  6970. ISO 
  6971.  
  6972. standards, note must be taken that their scope is expanded beyond that 
  6973. of just interfacing with packet switched public data networks. 
  6974.  
  6975. .LP
  6976.  
  6977. It should also be noted that this Recommendation uses the term DTE to refer 
  6978. to the equipment to which the DCE interfaces. In ISO\ 8208, distinction 
  6979. is made between a DTE and a packet switched private data network, which 
  6980. are both considered as DTEs in this Recommendation. 
  6981.  
  6982. .LP
  6983.  
  6984. CONTENTS
  6985.  
  6986. 1
  6987.  
  6988. \fIDTE/DCE interface characteristics (physical layer)\fR 
  6989.  
  6990. .LP
  6991.  
  6992. 1.1
  6993.  
  6994. X.21 interface
  6995.  
  6996. .LP
  6997.  
  6998. 1.2
  6999.  
  7000. X.21\|\fIbis\fR 
  7001.  
  7002. interface
  7003.  
  7004. .LP
  7005.  
  7006. 1.3
  7007.  
  7008. V\(hyseries interface
  7009.  
  7010. .LP
  7011.  
  7012. 1.4
  7013.  
  7014. X.31 interface
  7015.  
  7016. .LP
  7017.  
  7018. 2
  7019.  
  7020. \fILink access procedures across the DTE/DCE interface\fR 
  7021.  
  7022. .LP
  7023.  
  7024. 2.1
  7025.  
  7026. Scope and field of application
  7027.  
  7028. .LP
  7029.  
  7030. 2.2
  7031.  
  7032. Frame structure
  7033.  
  7034. .LP
  7035.  
  7036. 2.3
  7037.  
  7038. LAPB elements of procedures
  7039.  
  7040. .LP
  7041.  
  7042. 2.4
  7043.  
  7044. Description of the LAPB procedure
  7045.  
  7046. .LP
  7047.  
  7048. 2.5
  7049.  
  7050. Multilink procedure (MLP)
  7051.  
  7052. .LP
  7053.  
  7054. 2.6
  7055.  
  7056. LAP elements of procedure
  7057.  
  7058. .LP
  7059.  
  7060. 2.7
  7061.  
  7062. Description of the LAP procedure
  7063.  
  7064. .LP
  7065.  
  7066. 3
  7067.  
  7068. \fIDescription of the packet layer DTE/DCE interface\fR 
  7069.  
  7070. .LP
  7071.  
  7072. 3.1
  7073.  
  7074. Logical channels
  7075.  
  7076. .LP
  7077.  
  7078. 3.2
  7079.  
  7080. Basic structure of packets
  7081.  
  7082. .LP
  7083.  
  7084. 3.3
  7085.  
  7086. Procedure for restart
  7087.  
  7088. .LP
  7089.  
  7090. 3.4
  7091.  
  7092. Error handling
  7093.  
  7094. .LP
  7095.  
  7096. 4
  7097.  
  7098. \fIProcedures for virtual circuit services\fR 
  7099.  
  7100. .LP
  7101.  
  7102. 4.1
  7103.  
  7104. Procedures for virtual call service
  7105.  
  7106. .LP
  7107.  
  7108. 4.2
  7109.  
  7110. Procedures for permanent virtual circuit service
  7111.  
  7112. .LP
  7113.  
  7114. 4.3
  7115.  
  7116. Procedures for data and interrupt transfer
  7117.  
  7118. .LP
  7119.  
  7120. 4.4
  7121.  
  7122. Procedures for flow control
  7123.  
  7124. .LP
  7125.  
  7126. 4.5
  7127.  
  7128. Effects of clear, reset and restart procedures
  7129.  
  7130. on the transfer of packets
  7131.  
  7132. .LP
  7133.  
  7134. 4.6
  7135.  
  7136. Effects of the physical and the data link layer on the
  7137.  
  7138. packet layer
  7139.  
  7140. .LP
  7141.  
  7142. 5
  7143.  
  7144. \fIPacket formats\fR 
  7145.  
  7146. .LP
  7147.  
  7148. 5.1
  7149.  
  7150. General
  7151.  
  7152. .LP
  7153.  
  7154.  
  7155.  
  7156. 5.2
  7157.  
  7158. Call set\(hyup and clearing packets
  7159.  
  7160. .LP
  7161.  
  7162. 5.3
  7163.  
  7164. Data and interrupt packets
  7165.  
  7166. .LP
  7167.  
  7168. 5.4
  7169.  
  7170. Flow control and reset packets
  7171.  
  7172. .LP
  7173.  
  7174. 5.5
  7175.  
  7176. Restart packets
  7177.  
  7178. .LP
  7179.  
  7180. 5.6
  7181.  
  7182. Diagnostic packet
  7183.  
  7184. .LP
  7185.  
  7186. 5.7
  7187.  
  7188. Packets required for optional user facilities
  7189.  
  7190. .LP
  7191.  
  7192.  
  7193.  
  7194. 6
  7195.  
  7196. \fIProcedures for optional user facilities (packet layer)\fR 
  7197.  
  7198. .LP
  7199.  
  7200.  
  7201.  
  7202. 6.1
  7203.  
  7204. On\(hyline facility registration
  7205.  
  7206. .LP
  7207.  
  7208. 6.2
  7209.  
  7210. Extended packet sequence numbering
  7211.  
  7212. .LP
  7213.  
  7214. 6.3
  7215.  
  7216. D bit modification
  7217.  
  7218. .LP
  7219.  
  7220. 6.4
  7221.  
  7222. Packet retransmission
  7223.  
  7224. .LP
  7225.  
  7226. 6.5
  7227.  
  7228. Incoming calls barred
  7229.  
  7230. .LP
  7231.  
  7232. 6.6
  7233.  
  7234. Outgoing calls barred
  7235.  
  7236. .LP
  7237.  
  7238. 6.7
  7239.  
  7240. One\(hyway logical channel outgoing
  7241.  
  7242. .LP
  7243.  
  7244. 6.8
  7245.  
  7246. One\(hyway logical channel incoming
  7247.  
  7248. .LP
  7249.  
  7250. 6.9
  7251.  
  7252. Non\(hystandard default packet sizes
  7253.  
  7254. .LP
  7255.  
  7256. 6.10
  7257.  
  7258. Non\(hystandard default window sizes
  7259.  
  7260. .LP
  7261.  
  7262.  
  7263.  
  7264. 6.11
  7265.  
  7266. Default throughput classes assignment
  7267.  
  7268. .LP
  7269.  
  7270. 6.12
  7271.  
  7272. Flow control parameter negotiation
  7273.  
  7274. .LP
  7275.  
  7276. 6.13
  7277.  
  7278. Throughput class negotiation
  7279.  
  7280. .LP
  7281.  
  7282. 6.14
  7283.  
  7284. Closed user group related facilities
  7285.  
  7286. .LP
  7287.  
  7288. 6.15
  7289.  
  7290. Bilateral closed user group related facilities
  7291.  
  7292. .LP
  7293.  
  7294. 6.16
  7295.  
  7296. Fast select
  7297.  
  7298. .LP
  7299.  
  7300. 6.17
  7301.  
  7302. Fast select acceptance
  7303.  
  7304. .LP
  7305.  
  7306. 6.18
  7307.  
  7308. Reverse charging
  7309.  
  7310. .LP
  7311.  
  7312. 6.19
  7313.  
  7314. Reverse charging acceptance
  7315.  
  7316. .LP
  7317.  
  7318. 6.20
  7319.  
  7320. Local charging prevention
  7321.  
  7322. .LP
  7323.  
  7324. 6.21
  7325.  
  7326. Network user identification (NUI) related facilities
  7327.  
  7328. .LP
  7329.  
  7330.  
  7331.  
  7332. 6.22
  7333.  
  7334. Charging information
  7335.  
  7336. .LP
  7337.  
  7338. 6.23
  7339.  
  7340. RPOA related facilities
  7341.  
  7342. .LP
  7343.  
  7344. 6.24
  7345.  
  7346. Hunt group
  7347.  
  7348. .LP
  7349.  
  7350. 6.25
  7351.  
  7352. Call redirection and call deflection related facilities
  7353.  
  7354. .LP
  7355.  
  7356.  
  7357.  
  7358. 6.26
  7359.  
  7360. Called line address modified notification
  7361.  
  7362. .LP
  7363.  
  7364. 6.27
  7365.  
  7366. Transit delay selection and indication
  7367.  
  7368. .LP
  7369.  
  7370. 6.28
  7371.  
  7372. TOA/NEI address subscription
  7373.  
  7374. .LP
  7375.  
  7376. 7
  7377.  
  7378. \fIFormats for facility fields and registration fields\fR 
  7379.  
  7380. .LP
  7381.  
  7382. 7.1
  7383.  
  7384. General
  7385.  
  7386. .LP
  7387.  
  7388. 7.2
  7389.  
  7390. Coding of facility field in call set\(hyup
  7391.  
  7392. and clearing packets
  7393.  
  7394. .LP
  7395.  
  7396. 7.3
  7397.  
  7398. Coding of the registration field of
  7399.  
  7400. registration packets
  7401.  
  7402. .LP
  7403.  
  7404. \fIAnnex\ A\fR 
  7405.  
  7406. \(em
  7407.  
  7408. Range of logical channels used for virtual calls
  7409.  
  7410. and permanent virtual circuits
  7411.  
  7412. .LP
  7413.  
  7414. \fIAnnex\ B\fR 
  7415.  
  7416. \(em
  7417.  
  7418. Packet layer DTE/DCE interface state diagrams
  7419.  
  7420. .LP
  7421.  
  7422.  
  7423.  
  7424. \fIAnnex\ C\fR 
  7425.  
  7426. \(em
  7427.  
  7428. Actions taken by the DCE on receipt of packets
  7429.  
  7430. in a given state of the packet layer DTE/DCE interface as
  7431.  
  7432. perceived by the DCE
  7433.  
  7434. .LP
  7435.  
  7436. \fIAnnex\ D\fR 
  7437.  
  7438. \(em
  7439.  
  7440. Packet layer DCE time\(hyouts and DTE time\(hylimits
  7441.  
  7442. .LP
  7443.  
  7444.  
  7445.  
  7446. \fIAnnex\ E\fR 
  7447.  
  7448. \(em
  7449.  
  7450. Coding of X.25 network generated
  7451.  
  7452. diagnostic fields in clear, reset and restart indication,
  7453.  
  7454. registration confirmation, and diagnostic packets
  7455.  
  7456. .LP
  7457.  
  7458. \fIAnnex\ F\fR 
  7459.  
  7460. \(em
  7461.  
  7462. Applicability of the on\(hyline registration facility
  7463.  
  7464. to other facilities
  7465.  
  7466. .LP
  7467.  
  7468. \fIAnnex\ G\fR 
  7469.  
  7470. \(em
  7471.  
  7472. CCITT\(hyspecified DTE facilities to support the
  7473.  
  7474. OSI Network service
  7475.  
  7476. .LP
  7477.  
  7478. \fIAnnex\ H\fR 
  7479.  
  7480. \(em
  7481.  
  7482. Subscription\(hytime optional user facilities that may be
  7483.  
  7484. associated with a network user identifier in conjunction with the NUI
  7485.  
  7486. override facility
  7487.  
  7488. .LP
  7489.  
  7490. \fIAppendix\ I\fR 
  7491.  
  7492. \(em
  7493.  
  7494. Examples of data link layer transmitted bit patterns by   the DCE and the DTE
  7495.  
  7496. .LP
  7497.  
  7498. \fIAppendix\ II\fR 
  7499.  
  7500. \(em
  7501.  
  7502. An explanation of how the values for N1 in \(sc 2.4.8.5 are derived
  7503.  
  7504. .LP
  7505.  
  7506. \fIAppendix\ III\fR 
  7507.  
  7508. \(em
  7509.  
  7510. Examples of multilink resetting procedures
  7511.  
  7512. .LP
  7513.  
  7514.  
  7515.  
  7516. \fIAppendix\ IV\fR 
  7517.  
  7518. \(em
  7519.  
  7520. Information on addresses in call set\(hyup and clearing
  7521.  
  7522. packets
  7523.  
  7524. .LP
  7525.  
  7526. \fB1\fR 
  7527.  
  7528. \fBDTE/DCE interface characteristics\fR 
  7529.  
  7530. \fB(physical layer)\fR 
  7531.  
  7532. .LP
  7533.  
  7534.  
  7535.  
  7536. Administrations may offer one or more of the interfaces specified below. 
  7537. The exact use of the relevant points in these Recommendations is 
  7538.  
  7539. detailed below.
  7540.  
  7541. .LP
  7542.  
  7543. 1.1
  7544.  
  7545. \fIX.21 interface\fR 
  7546.  
  7547. .LP
  7548.  
  7549. 1.1.1
  7550.  
  7551. \fIDTE/DCE physical interface elements\fR 
  7552.  
  7553. .LP
  7554.  
  7555. The DTE/DCE physical interface elements shall be according to
  7556.  
  7557. \(sc\(sc\ 2.1 through\ 2.5 of Recommendation\ X.21.
  7558.  
  7559. .LP
  7560.  
  7561. 1.1.2
  7562.  
  7563. \fIProcedures for entering operational phases\fR 
  7564.  
  7565. .LP
  7566.  
  7567. The procedures for entering operational phases shall be as
  7568.  
  7569. described in \(sc\ 5.2 of Recommendation\ X.21. The data exchanged on circuits\ 
  7570.  
  7571. and\ R when the interface is in states\ 13S, 13R and\ 13 of Figure A\(hy3/X.21 
  7572. will be as described in subsequent sections of this Recommendation. 
  7573.  
  7574. .LP
  7575.  
  7576. The \fInot ready\fR 
  7577.  
  7578. \| states given in \(sc\ 2.5 of Recommendation X.21 are
  7579.  
  7580. considered to be \fInon\(hyoperational\fR 
  7581.  
  7582. states and may be considered by the higher   layers to be \fIout of order\fR 
  7583.  
  7584. states (see \(sc\ 4.6 below).
  7585.  
  7586. .LP
  7587.  
  7588. 1.1.3
  7589.  
  7590. \fIFailure detection and test loops\fR 
  7591.  
  7592. .LP
  7593.  
  7594. The failure detection principles shall be according to \(sc\ 2.6 of
  7595.  
  7596. Recommendation\ X.21. In addition, i\ =\ OFF may be signalled due to momentary
  7597.  
  7598. transmission failures. Higher layers may delay for several seconds before
  7599.  
  7600. considering the interface to be out of order.
  7601.  
  7602. .LP
  7603.  
  7604. The definitions of test loops and the principles of maintenance
  7605.  
  7606. testing using the test loops are provided in Recommendation\ X.150.
  7607.  
  7608. .LP
  7609.  
  7610. A description of the test loops and the procedures for their use is
  7611.  
  7612. given in \(sc\ 7 of Recommendation\ X.21.
  7613.  
  7614. .LP
  7615.  
  7616.  
  7617.  
  7618. Automatic activation by a DTE of a test loop\ 2 in the DCE at the
  7619.  
  7620. remote terminal is not possible. However, some Administrations may permit 
  7621. the DTE to control the equivalent of a test loop\ 2, at the local DSE, 
  7622. to verify the operation of the leased line or subscriber line and/or all 
  7623. or part of the DCE or line terminating equipment. Control of the loop, 
  7624. if provided, may be either manual or automatic, as described in Recommendations\ 
  7625. X.150 and\ X.21 
  7626.  
  7627. respectively.
  7628.  
  7629. .LP
  7630.  
  7631. 1.1.4
  7632.  
  7633. \fISignal element timing\fR 
  7634.  
  7635. .LP
  7636.  
  7637. Signal element timing shall be in accordance with \(sc\ 2.6.3 of
  7638.  
  7639. Recommendation\ X.21.
  7640.  
  7641. .LP
  7642.  
  7643. 1.2
  7644.  
  7645. \fIX.21\|bis interface\fR 
  7646.  
  7647. .LP
  7648.  
  7649. 1.2.1
  7650.  
  7651. \fIDTE/DCE physical interface elements\fR 
  7652.  
  7653. .LP
  7654.  
  7655. The DTE/DCE physical interface elements shall be according to \(sc\ 1.2 
  7656. of Recommendation\ X.21\|\fIbis\fR 
  7657.  
  7658. .
  7659.  
  7660. .LP
  7661.  
  7662. 1.2.2
  7663.  
  7664. \fIOperational phases\fR 
  7665.  
  7666. .LP
  7667.  
  7668. When circuit 107 is in the ON condition, and circuits\ 105, 106, 108 and 
  7669. 109, if provided, are in the ON condition, data exchange on circuits\ 103 
  7670.  
  7671. and\ 104 will be as described in subsequent sections of this
  7672.  
  7673. Recommendation.
  7674.  
  7675. .LP
  7676.  
  7677.  
  7678.  
  7679. When circuit 107 is in the OFF condition, or any of circuits 105, 106, 
  7680. 108 or\ 109, if provided, are in the OFF condition, this is considered 
  7681. to be in a \fInon\(hyoperational\fR 
  7682.  
  7683.  state, and may be considered by the higher layers to be in an \fIout of 
  7684. order\fR 
  7685.  
  7686. state (see \(sc\ 4.6 below).
  7687.  
  7688. .LP
  7689.  
  7690. 1.2.3
  7691.  
  7692. \fIFailure detection and test loops\fR 
  7693.  
  7694. .LP
  7695.  
  7696. The failure detection principles, the description of test loops and the 
  7697. procedures for their use shall be according to \(sc\(sc\ 3.1 through\ 3.3 
  7698. of 
  7699.  
  7700. Recommendation\ X.21\|\fIbis\fR 
  7701.  
  7702. . In addition, circuits\ 106 and\ 109 may enter the OFF condition due to 
  7703. momentary transmission failures. Higher layers may delay for several seconds 
  7704. before considering the interface to be out of order. 
  7705.  
  7706. .LP
  7707.  
  7708.  
  7709.  
  7710. Automatic activation by a DTE of test loop 2 in the DCE at the remote terminal 
  7711. is not possible. However, some Administrations may permit the DTE to control 
  7712. the equivalent of a test loop\ 2, at the local DSE, to verify the 
  7713.  
  7714. operation of the leased line or subscriber line and/or all or part of the 
  7715. DCE or line terminating equipment. Control of the loop, if provided, may 
  7716. be either manual or automatic, as described in Recommendations\ X.150 and\ 
  7717. X.21\|\fIbis\fR 
  7718.  
  7719.  
  7720.  
  7721. respectively.
  7722.  
  7723. .LP
  7724.  
  7725. 1.2.4
  7726.  
  7727. \fISignal element timing\fR 
  7728.  
  7729. .LP
  7730.  
  7731. Signal element timing shall be in accordance with \(sc\ 3.4 of
  7732.  
  7733. Recommendation\ X.21\|\fIbis\fR 
  7734.  
  7735. .
  7736.  
  7737. .LP
  7738.  
  7739. 1.3
  7740.  
  7741. \fIV\(hySeries interface\fR 
  7742.  
  7743. .LP
  7744.  
  7745. General operation with V\(hySeries modems is as described in \(sc\ 1.2
  7746.  
  7747. above. However, for specific details, particularly related to failure detection 
  7748. principles, loop testing, and the use of circuits\ 107, 109, 113 and\ 114, 
  7749. refer to the appropriate V\(hySeries Recommendations. 
  7750.  
  7751. .LP
  7752.  
  7753. The delay between 105\(hyON and 106\(hyON (when these
  7754.  
  7755. circuits are present) will be more than 10\ ms and less than 1\ s. In addition, 
  7756. circuits\ 106 or\ 109 may enter the OFF condition due to momentary transmission 
  7757. failures or modem retraining. Higher layers may delay for several seconds 
  7758.  
  7759. before considering the interface to be out of order.
  7760.  
  7761. .LP
  7762.  
  7763. 1.4
  7764.  
  7765. \fIX.31 interface\fR 
  7766.  
  7767. .LP
  7768.  
  7769. 1.4.1
  7770.  
  7771. \fIDTE/DCE physical interface\fR 
  7772.  
  7773. .LP
  7774.  
  7775. The DTE/DCE physical interface shall coincide with the R reference point 
  7776. between the DTE and the Terminal Adaptor (TA). The purpose of the TA is 
  7777.  
  7778. to allow the operation of a DTE over an ISDN. The functionalities of such 
  7779. a TA when accessing a packet switched data transmission service through 
  7780.  
  7781. semi\(hypermanent ISDN connection (i.e.,\ a non switched B\(hychannel) 
  7782. are described in \(sc\ 7 of Recommendation\ X.31. 
  7783.  
  7784. .LP
  7785.  
  7786. \fINote\ 1\fR 
  7787.  
  7788. \ \(em\ This type of access is considered a dedicated access to a public 
  7789. switched data transmission service. Non dedicated access to a public 
  7790.  
  7791. switched data transmission service is defined in Recommendations\ X.32
  7792.  
  7793. and\ X.31.
  7794.  
  7795. .LP
  7796.  
  7797. \fINote\ 2\fR 
  7798.  
  7799. \ \(em\ The DTE and the TA functionalities may be implemented in
  7800.  
  7801. the same piece of equipment in the case of a packet mode terminal TE1
  7802.  
  7803. conforming to the I\(hyseries Recommendations. In this case, this
  7804.  
  7805. Recommendation covers layer\ 2 and layer\ 3 operation on the semi\(hypermanent
  7806.  
  7807. B\(hychannel.
  7808.  
  7809. .LP
  7810.  
  7811. 1.4.2
  7812.  
  7813. \fIOperational phases\fR 
  7814.  
  7815. .LP
  7816.  
  7817. The operational phases are as described in \(sc 7 of
  7818.  
  7819. Recommendation\ X.31.
  7820.  
  7821. .LP
  7822.  
  7823. 1.4.3
  7824.  
  7825. \fIMaintenance\fR 
  7826.  
  7827. .LP
  7828.  
  7829.  
  7830.  
  7831. The maintenance shall be made as described in \(sc 7.6 of
  7832.  
  7833. Recommendation\ X.31.
  7834.  
  7835. .LP
  7836.  
  7837. 1.4.4
  7838.  
  7839. \fISynchronization\fR 
  7840.  
  7841. .LP
  7842.  
  7843. The synchronization shall be made as described in \(sc 7 of
  7844.  
  7845. Recommendation\ X.31.
  7846.  
  7847. .LP
  7848.  
  7849. \fB2\fR 
  7850.  
  7851. \fBLink access procedures across the DTE/DCE interface\fR 
  7852.  
  7853. .LP
  7854.  
  7855.  
  7856.  
  7857. 2.1
  7858.  
  7859. \fIScope and field of applications\fR 
  7860.  
  7861. .LP
  7862.  
  7863. 2.1.1 
  7864.  
  7865. The 
  7866.  
  7867. Link Access Procedures
  7868.  
  7869. (LAPB and LAP) are
  7870.  
  7871. described as the 
  7872.  
  7873. Data Link Layer Element
  7874.  
  7875. and are used for data
  7876.  
  7877. interchange
  7878.  
  7879. between a DCE and a DTE over a single physical circuit (LAPB and LAP), or
  7880.  
  7881. optionally over multiple physical circuits (LAPB), operating in user classes 
  7882. of service\ 8 to\ 11 as indicated in Recommendation\ X.1. The optional, 
  7883.  
  7884. subscription\(hytime selectable, multiple physical circuit operation with LAPB
  7885.  
  7886. (known as multilink operation) is required if the effects of circuit failures 
  7887. are not to disrupt the Packet Layer operation. 
  7888.  
  7889. .LP
  7890.  
  7891. The single link procedures (SLPs) described in \(sc\(sc\ 2.2, 2.3
  7892.  
  7893. and\ 2.4 (LAPB) and in \(sc\(sc\ 2.2, 2.6 and 2.7 (LAP) are used for data 
  7894. interchange over a single physical circuit, conforming to the description 
  7895. given in \(sc\ 1, 
  7896.  
  7897. between a DTE and a DCE. When the optional multilink operation is employed 
  7898. with LAPB, a single link procedure (SLP) is used independently on each 
  7899. physical 
  7900.  
  7901. circuit, and the multilink procedure (MLP) described in \(sc\ 2.5 is used for
  7902.  
  7903. data interchange over these multiple parallel LAPB data links. In addition,
  7904.  
  7905. when only a single physical circuit is employed with LAPB, agreements may be
  7906.  
  7907. made with the Administration to use this optional 
  7908.  
  7909. multilink procedure
  7910.  
  7911. over the one LAPB data link.
  7912.  
  7913. .LP
  7914.  
  7915. 2.1.2
  7916.  
  7917. The 
  7918.  
  7919. single link procedures (SLPs)
  7920.  
  7921. use the principles
  7922.  
  7923. and terminology of the High\(hylevel Data Link Control (HDLC) procedures
  7924.  
  7925. specified by the International Organization for Standardization (ISO). The
  7926.  
  7927. multilink pro
  7928.  
  7929. cedure\ (MLP) is based on the principles and terminology of the Multilink 
  7930. Control Procedures specified by ISO. 
  7931.  
  7932. .LP
  7933.  
  7934. 2.1.3
  7935.  
  7936. Each transmission facility is duplex.
  7937.  
  7938. .LP
  7939.  
  7940. 2.1.4
  7941.  
  7942. DCE compatibility of operation with the ISO balanced classes
  7943.  
  7944. of procedure (Class BA with options\ 2, 8 and Class\ BA with options\ 2, 
  7945. 8, 10) is achieved using the LAPB procedure described in \(sc\(sc\ 2.3 
  7946. and\ 2.4. Of these 
  7947.  
  7948. classes, Class\ BA with options\ 2, 8 (LAPB modulo\ 8) is the basic service, 
  7949. and is available in all networks. Class\ BA with options\ 2, 8, 10 (LAPB 
  7950. modulo\ 128) is recognized as an optional, subscription\(hytime selectable, 
  7951. extended sequence numbering service that may be available in those networks 
  7952. wishing to serve DTE applications having a need for modulo\ 128 sequence 
  7953. numbering. 
  7954.  
  7955. .LP
  7956.  
  7957.  
  7958.  
  7959. DTE manufacturers and implementors must be aware that the
  7960.  
  7961. procedure hereunder described as LAPB modulo\ 8 will be the only one available 
  7962. in all networks. 
  7963.  
  7964. .LP
  7965.  
  7966. Likewise, a DTE may continue to use the LAP procedure described in
  7967.  
  7968. \(sc\(sc\ 2.2, 2.6 and\ 2.7 (in those networks supporting such a procedure), 
  7969. but for 
  7970.  
  7971. new
  7972.  
  7973. DTE implementations, LAPB should be preferred. The LAP procedures are defined 
  7974. for modulo\ 8 basic service only. 
  7975.  
  7976. .LP
  7977.  
  7978. \fINote\fR 
  7979.  
  7980. \ \(em\ Other possible applications for further study are, for
  7981.  
  7982. example:
  7983.  
  7984. .LP
  7985.  
  7986. \(em
  7987.  
  7988. two\(hyway alternate, asynchronous response mode;
  7989.  
  7990. .LP
  7991.  
  7992. \(em
  7993.  
  7994. two\(hyway simultaneous, normal response mode;
  7995.  
  7996. .LP
  7997.  
  7998. \(em
  7999.  
  8000. two\(hyway alternate, normal response mode.
  8001.  
  8002. .LP
  8003.  
  8004.  
  8005.  
  8006. 2.1.5
  8007.  
  8008. For those networks that choose to support both the basic and
  8009.  
  8010. extended LAPB sequence numbering services, the choice of either basic mode
  8011.  
  8012. (modulo\ 8) or extended mode (modulo\ 128) may be made at subscription 
  8013. time. The choice of the mode employed for each data link procedure is independent 
  8014. of all others and of the choice of mode for the corresponding Packet Layer 
  8015. procedures. All choices are matters for agreement for a period of time 
  8016. with the 
  8017.  
  8018. Administration.
  8019.  
  8020. .LP
  8021.  
  8022. 2.1.6
  8023.  
  8024. In the case of those networks that support both the LAPB procedure and 
  8025. the LAP procedure, the DCE will maintain an internal mode variable\ B, 
  8026. which it will set as follows: 
  8027.  
  8028. .LP
  8029.  
  8030. \(em
  8031.  
  8032. to 1, upon acceptance of an SABM/SABME (modulo 8/modulo\ 128)
  8033.  
  8034. command from the DTE, or upon issuance of an SABM/SABME command
  8035.  
  8036. by the DCE;
  8037.  
  8038. .LP
  8039.  
  8040. \(em
  8041.  
  8042. to 0, upon acceptance of an SARM command from the DTE.
  8043.  
  8044. .LP
  8045.  
  8046.  
  8047.  
  8048. Whenever B is 1, the DCE will use the LAPB procedure described in \(sc\(sc\ 
  8049. 2.2, 2.3 and 2.4 below, and is said to be in the LAPB (balanced) mode. 
  8050.  
  8051. .LP
  8052.  
  8053.  
  8054.  
  8055. Whenever B is 0, the DCE will use the LAP procedure described in
  8056.  
  8057. \(sc\(sc\ 2.2, 2.6 and 2.7 below, and is said to be in the LAP mode.
  8058.  
  8059. .LP
  8060.  
  8061. Changes to the mode variable B by the DTE should occur only when the data 
  8062. link has been disconnected as described in \(sc\(sc\ 2.4.4.3 or\ 2.7.3.3 
  8063. below. 
  8064.  
  8065. .LP
  8066.  
  8067.  
  8068.  
  8069. Should a DCE malfunction occur that negates the current setting of
  8070.  
  8071. internal mode variable\ B, the DCE will, upon restoration of operation, 
  8072. not send either a SARM or SABM/SABME command. The DCE may send a DISC command 
  8073. or a 
  8074.  
  8075. DM\ response to notify the DTE that the DCE is in the disconnected phase. 
  8076. This will result in the DTE attempting to reinitialize the data link with 
  8077. what the DTE 
  8078.  
  8079. considers to be the proper mode\(hysetting command (SARM or SABM/SABME). 
  8080. The DCE will then be able to set the internal mode variable\ B to its proper 
  8081.  
  8082. value.
  8083.  
  8084. .LP
  8085.  
  8086. 2.2
  8087.  
  8088. \fIFrame structure\fR 
  8089.  
  8090. .LP
  8091.  
  8092. 2.2.1
  8093.  
  8094. All transmissions on an SLP are in frames conforming to one of the formats 
  8095. of Table\ 1/X.25 for basic (modulo\ 8) operation, or alternatively one 
  8096. of the formats of Table\ 2/X.25 for extended (modulo\ 128) operation. The 
  8097. flag 
  8098.  
  8099. preceding the address field is defined as the opening flag. The flag following 
  8100. the FCS field is defined as the closing flag. 
  8101.  
  8102. .LP
  8103.  
  8104. .line
  8105.  
  8106. \fBTable 1/X.25 [T1.25], p.\fR 
  8107.  
  8108. .line
  8109.  
  8110. \fBTable 2/X.25 [T2.25], p.\fR 
  8111.  
  8112. 2.2.2
  8113.  
  8114. \fIFlag sequence\fR 
  8115.  
  8116. .LP
  8117.  
  8118. All frames shall start and end with the flag sequence consisting of one 
  8119. 0\ bit followed by six contiguous 1\ bits and one 0\ bit. The DTE and DCE 
  8120.  
  8121. shall only send complete eight\(hybit flag sequences when sending multiple flag
  8122.  
  8123. sequences (see \(sc\ 2.2.11). A single flag may be used as both the 
  8124.  
  8125. closing
  8126.  
  8127. flag
  8128.  
  8129. for one frame and the 
  8130.  
  8131. opening flag
  8132.  
  8133. for the next frame.
  8134.  
  8135. .LP
  8136.  
  8137. 2.2.3
  8138.  
  8139. \fIAddress field\fR 
  8140.  
  8141. .LP
  8142.  
  8143. The address field shall consist of one octet. The address field
  8144.  
  8145. identifies the intended receiver of a command frame and the transmitter of a
  8146.  
  8147. response frame. The coding of the address field is described in \(sc\ 2.4.2 
  8148. (LAPB) and in \(sc\ 2.7.1 (LAP) below. 
  8149.  
  8150. .LP
  8151.  
  8152. 2.2.4
  8153.  
  8154. \fIControl field\fR 
  8155.  
  8156. .LP
  8157.  
  8158. For modulo\ 8 (basic) operation, the control field shall consist of one 
  8159. octet. For modulo\ 128 (extended) operation, the control field shall consist 
  8160. of two octets for frame formats that contain sequence numbers, and one 
  8161. octet 
  8162.  
  8163. for frame formats that do not contain sequence numbers. The content of this
  8164.  
  8165. field is described in \(sc\ 2.3.2\ (LAPB) and in \(sc\ 2.6.2 (LAP) below.
  8166.  
  8167. .LP
  8168.  
  8169. 2.2.5
  8170.  
  8171. \fIInformation field\fR 
  8172.  
  8173. .LP
  8174.  
  8175. The information field of a frame, when present, follows the control field 
  8176. (see \(sc\ 2.2.4 above) and precedes the 
  8177.  
  8178. frame check sequence field
  8179.  
  8180. (see \(sc\ 2.2.7 below).
  8181.  
  8182. .LP
  8183.  
  8184. See \(sc\(sc 2.3.4.9, 2.5.2, 2.6.4.8 and 5 for the various codings and
  8185.  
  8186. groupings of bits in the information field as used in this Recommendation.
  8187.  
  8188. .LP
  8189.  
  8190.  
  8191.  
  8192. See \(sc\(sc 2.3.4.9, 2.4.8.5, 2.6.4.8 and 2.7.7.5 below with regard to 
  8193. the maximum information field length. 
  8194.  
  8195. .LP
  8196.  
  8197. 2.2.6
  8198.  
  8199. \fITransparency\fR 
  8200.  
  8201. .LP
  8202.  
  8203. The DCE or DTE, when transmitting, shall examine the frame content between 
  8204. the two flag sequences including the address, control, information and 
  8205. FCS fields and shall insert a 0 bit after all sequences of 5 contiguous 
  8206. 1\ bits (including the last 5\ bits of the FCS) to ensure that a flag sequence 
  8207. is not 
  8208.  
  8209. simulated. The DCE or DTE, when receiving, shall examine the frame content 
  8210. and shall discard any 0\ bit which directly follows\ 5 contiguous 1\ bits. 
  8211.  
  8212. .LP
  8213.  
  8214. 2.2.7
  8215.  
  8216. \fIFrame check sequence (FCS)\fR 
  8217.  
  8218. \fI field\fR 
  8219.  
  8220. .LP
  8221.  
  8222. The notation used to describe the FCS is based on the property of cyclic 
  8223. codes that a code vector such as 1000000100001 can be represented by a 
  8224. polynomial \fIP\fR 
  8225.  
  8226. (\fIx\fR 
  8227.  
  8228. )\ =\ \fIx\fR 
  8229.  
  8230. \u1\d\u2\d\ +\ \fIx\fR 
  8231.  
  8232. \u5\d\ +\ 1. The elements of an \fIn\fR 
  8233.  
  8234. \(hyelement
  8235.  
  8236. code word are thus the coefficients of a polynomial of order \fIn\fR 
  8237.  
  8238. \ \(em\ 1. In this application, these coefficients can have the value\ 
  8239. 0 or\ 1 and the polynomial 
  8240.  
  8241. operations are performed modulo\ 2. The polynomial representing the content 
  8242. of a frame is generated using the first bit received after the frame opening 
  8243. flag as the coefficient of the highest order term. 
  8244.  
  8245. .LP
  8246.  
  8247. The FCS field shall be a 16\(hybit sequence. It shall be the ones
  8248.  
  8249. complement of the sum (modulo\ 2) of:
  8250.  
  8251. .LP
  8252.  
  8253. 1)
  8254.  
  8255. the remainder of
  8256.  
  8257. \fIx\fR 
  8258.  
  8259. \uD\dlFk\fR 
  8260.  
  8261. (\fIx\fR 
  8262.  
  8263. \u1\d\u5\d\uD\dlF036+\ \fIx\fR 
  8264.  
  8265. \u1\d\u4\d\ +\ \fIx\fR 
  8266.  
  8267. \u1\d\u3\d\ +
  8268.  
  8269. \fIx\fR 
  8270.  
  8271. \u1\d\u2\d\ +\ \fIx\fR 
  8272.  
  8273. \u1\d\u1\d\ +\ \fIx\fR 
  8274.  
  8275. \u1\d\u0\d\ +\ \fIx\fR 
  8276.  
  8277. \u9\d\ +\ \fIx\fR 
  8278.  
  8279. \u8\d\ +
  8280.  
  8281. \fIx\fR 
  8282.  
  8283. \u7\d\ +\ \fIx\fR 
  8284.  
  8285. \u6\d\ +\ \fIx\fR 
  8286.  
  8287. \u5\d\ +\ \fIx\fR 
  8288.  
  8289. \u4\d\uD\dlF036+\ \fIx\fR 
  8290.  
  8291. \u3\d\ +
  8292.  
  8293. +\ \fIx\fR 
  8294.  
  8295. \u2\d\ +\ \fIx\fR 
  8296.  
  8297. \ +\ 1) divided (modulo\ 2)
  8298.  
  8299. by the
  8300.  
  8301. generator polynomial \fIx\fR 
  8302.  
  8303. \u1\d\u6\d\ +\ \fIx\fR 
  8304.  
  8305. \u1\d\u2\d\ +\ \fIx\fR 
  8306.  
  8307. \u5\d\ +\ 1,
  8308.  
  8309. where \fIk\fR 
  8310.  
  8311. is the number of bits in the frame existing between,
  8312.  
  8313. but not including, the final bit of the opening flag and the
  8314.  
  8315. first bit of the FCS, excluding bits inserted for transparency,
  8316.  
  8317. and
  8318.  
  8319. .LP
  8320.  
  8321. 2)
  8322.  
  8323. the remainder of the division (modulo 2) by the generator
  8324.  
  8325. polynomial \fIx\fR 
  8326.  
  8327. \u1\d\u6\d\ +\ \fIx\fR 
  8328.  
  8329. \u1\d\u2\d\ +\ \fIx\fR 
  8330.  
  8331. \u5\d\ +\ 1 of the
  8332.  
  8333. product of \fIx\fR 
  8334.  
  8335. \u1\d\u6\d by the content of the frame, existing
  8336.  
  8337. between but not including, the final bit of the opening flag and
  8338.  
  8339. the first bit of the FCS, excluding bits inserted for
  8340.  
  8341. transparency.
  8342.  
  8343. .LP
  8344.  
  8345.  
  8346.  
  8347. As a typical implementation, at the transmitter, the initial
  8348.  
  8349. content of the register of the device computing the remainder of the division 
  8350. is preset to all 1s and is then modified by division by the generator 
  8351.  
  8352. polynomial (as described above) on the address, control and information 
  8353. fields; the ones complement of the resulting remainder is transmitted as 
  8354. the 16\(hybit 
  8355.  
  8356. FCS.
  8357.  
  8358. .LP
  8359.  
  8360. At the receiver, the initial content of the register of the device
  8361.  
  8362. computing the remainder is preset to all 1s. The final remainder, after
  8363.  
  8364. multiplication by \fIx\fR 
  8365.  
  8366. \u1\d\u6\d and then division (modulo\ 2) by the generator
  8367.  
  8368. polynomial \fIx\fR 
  8369.  
  8370. \u1\d\u6\d\ +\ \fIx\fR 
  8371.  
  8372. \u1\d\u2\d\ +\ \fIx\fR 
  8373.  
  8374. \u5\d\ +\ 1 of the serial incoming protected bits and the FCS, will be 
  8375. 0001110100001111 (\fIx\fR 
  8376.  
  8377. \u1\d\u5\d through
  8378.  
  8379. \fIx\fR 
  8380.  
  8381. \u0\d, respectively) in the absence of transmission errors.
  8382.  
  8383. .LP
  8384.  
  8385. \fINote\fR 
  8386.  
  8387. \ \(em\ Examples of transmitted bit patterns by the DCE and the DTE illustrating 
  8388. application of the transparency mechanism and the frame check 
  8389.  
  8390. sequence to the SABM command and the UA response are given in Appendix\ I.
  8391.  
  8392. .LP
  8393.  
  8394. 2.2.8
  8395.  
  8396. \fIOrder of bit transmission\fR 
  8397.  
  8398. .LP
  8399.  
  8400. Addresses, commands, responses and sequence numbers shall be
  8401.  
  8402. transmitted with the low\(hyorder bit first (for example, the first bit of the
  8403.  
  8404. sequence number that is transmitted shall have the weight 2\u0\d). The 
  8405. order of transmitting bits within the information field is not specified 
  8406. under \(sc\ 2 of 
  8407.  
  8408. this Recommendation. The FCS shall be transmitted to the line commencing 
  8409. with the coefficient of the highest term, which is found in bit position\ 
  8410. 16 of the FCS\ field (see Tables\ 1/X.25 and 2/X.25). 
  8411.  
  8412. .LP
  8413.  
  8414. \fINote\fR 
  8415.  
  8416. \ \(em\ In Tables 1/X.25 to 13/X.25, bit 1 is defined as the
  8417.  
  8418. low\(hyorder bit.
  8419.  
  8420. .LP
  8421.  
  8422. 2.2.9
  8423.  
  8424. \fIInvalid frames\fR 
  8425.  
  8426. .LP
  8427.  
  8428. The definition of an invalid frame is described in \(sc\ 2.3.5.3 (LAPB) 
  8429. and in \(sc\ 2.6.5.3 (LAP) below. 
  8430.  
  8431. .LP
  8432.  
  8433. 2.2.10
  8434.  
  8435. \fIFrame abortion\fR 
  8436.  
  8437. .LP
  8438.  
  8439. Aborting a frame is performed by transmitting at least seven
  8440.  
  8441. contiguous 1\ bits (with no inserted 0\ bits).
  8442.  
  8443. .LP
  8444.  
  8445. 2.2.11
  8446.  
  8447. \fIInterframe time fill\fR 
  8448.  
  8449. .LP
  8450.  
  8451. Interframe time fill is accomplished by transmitting contiguous
  8452.  
  8453. flags between frames, i.e.\ multiple eight\(hybit flag sequences (see
  8454.  
  8455. \(sc\ 2.2.2).
  8456.  
  8457. .LP
  8458.  
  8459. 2.2.12
  8460.  
  8461. \fILink channel states\fR 
  8462.  
  8463. .LP
  8464.  
  8465. A link channel as defined here is the means for transmission for
  8466.  
  8467. one direction.
  8468.  
  8469. .LP
  8470.  
  8471. 2.2.12.1
  8472.  
  8473. \fIActive channel state\fR 
  8474.  
  8475. .LP
  8476.  
  8477. The DCE incoming or outgoing channel is defined to be in an active condition 
  8478. when it is receiving or transmitting, respectively, a frame, an 
  8479.  
  8480. abortion sequence or interframe time fill.
  8481.  
  8482. .LP
  8483.  
  8484. 2.2.12.2
  8485.  
  8486. \fIIdle channel state\fR 
  8487.  
  8488. .LP
  8489.  
  8490. The DCE incoming or outgoing channel is defined to be in an idle
  8491.  
  8492. condition when it is receiving or transmitting, respectively, a continuous\ 
  8493. 1s state for a period of at least 15\ bit times. 
  8494.  
  8495. .LP
  8496.  
  8497. See \(sc\ 2.3.5.5 for a description of DCE action when an idle condition 
  8498. exists on its incoming channel for an excessive period of time. 
  8499.  
  8500. .LP
  8501.  
  8502.  
  8503.  
  8504. 2.3
  8505.  
  8506. \fILAPB elements of procedures\fR 
  8507.  
  8508. .LP
  8509.  
  8510. 2.3.1
  8511.  
  8512. The LAPB elements of procedures are defined in terms of actions
  8513.  
  8514. that occur on receipt of frames at the DCE or\ DTE.
  8515.  
  8516. .LP
  8517.  
  8518. The elements of procedures specified below contain the selection
  8519.  
  8520. of commands and responses relevant to the LAPB data link and system
  8521.  
  8522. configurations
  8523.  
  8524. described in \(sc\ 2.1 above. Together, \(sc\(sc\ 2.2 and 2.3 form the general
  8525.  
  8526. requirements for the proper management of a LAPB access data link.
  8527.  
  8528. .LP
  8529.  
  8530.  
  8531.  
  8532. 2.3.2
  8533.  
  8534. \fILAPB control field formats and parameters\fR 
  8535.  
  8536. .LP
  8537.  
  8538.  
  8539.  
  8540. 2.3.2.1
  8541.  
  8542. \fIControl field formats\fR 
  8543.  
  8544. .LP
  8545.  
  8546. The control field contains a command or a response, and sequence
  8547.  
  8548. numbers where applicable.
  8549.  
  8550. .LP
  8551.  
  8552. Three types of control field formats are used to perform numbered
  8553.  
  8554. information transfer (I\ format), numbered supervisory functions (S\ format) 
  8555. and unnumbered control functions (U\ format). 
  8556.  
  8557. .LP
  8558.  
  8559. The control field formats for basic (modulo\ 8) operation are depicted 
  8560. in Table\ 3/X.25. 
  8561.  
  8562. .LP
  8563.  
  8564.  
  8565.  
  8566. The control field formats for extended (modulo 128) operation are
  8567.  
  8568. depicted in Table\ 4/X.25.
  8569.  
  8570. .LP
  8571.  
  8572. .line
  8573.  
  8574. \fBTable 3/X.25 [T3.25], p.\fR 
  8575.  
  8576. .line
  8577.  
  8578. \fBTable 4/X.25 [T4/X.25], p.\fR 
  8579.  
  8580. 2.3.2.1.1
  8581.  
  8582. \fIInformation transfer format\fR 
  8583.  
  8584. \fI \(em I\fR 
  8585.  
  8586. .LP
  8587.  
  8588. The I format is used to perform an information transfer. The
  8589.  
  8590. functions of N(S), N(R) and P are independent; i.e.,\ each I\ frame has 
  8591. an N(S), an N(R) which may or may not acknowledge additional I\ frames 
  8592. received by the 
  8593.  
  8594. DCE or DTE, and a P\ bit that may be set to\ 0 or\ 1.
  8595.  
  8596. .LP
  8597.  
  8598. 2.3.2.1.2
  8599.  
  8600. \fISupervisory format\fR 
  8601.  
  8602. \fI \(em S\fR 
  8603.  
  8604. .LP
  8605.  
  8606. The S format is used to perform data link supervisory control
  8607.  
  8608. functions such as acknowledge I\ frames, request retransmission of I\ frames, 
  8609. and to request a temporary suspension of transmission of I\ frames. The 
  8610. functions of N(R) and P/F are independent; i.e.,\ each supervisory frame 
  8611. has an N(R) which 
  8612.  
  8613. may or may not acknowledge additional I\ frames received by the DCE or\ 
  8614. DTE, and a P/F\ bit that may be set to\ 0 or\ 1. 
  8615.  
  8616. .LP
  8617.  
  8618. 2.3.2.1.3
  8619.  
  8620. \fIUnnumbered format\fR 
  8621.  
  8622. \fI \(em U\fR 
  8623.  
  8624. .LP
  8625.  
  8626. The U format is used to provide additional data link control
  8627.  
  8628. functions. This format contains no sequence numbers, but does include a 
  8629. P/F\ bit that may be set to\ 0 or\ 1. The unnumbered frames have the same 
  8630. control field 
  8631.  
  8632. length (one octet) in both basic (modulo\ 8) operation and extended (modulo\ 
  8633. 128) operation. 
  8634.  
  8635. .LP
  8636.  
  8637. 2.3.2.2
  8638.  
  8639. \fIControl field parameters\fR 
  8640.  
  8641. .LP
  8642.  
  8643. The various parameters associated with the control field formats
  8644.  
  8645. are described below.
  8646.  
  8647. .LP
  8648.  
  8649. 2.3.2.2.1
  8650.  
  8651. \fIModulus\fR 
  8652.  
  8653. .LP
  8654.  
  8655. Each I frame is sequentially numbered and may have the value\ 0
  8656.  
  8657. through modulus minus\ 1 (where \*Qmodulus\*U is the modulus of the sequence
  8658.  
  8659. numbers). The modulus equals either\ 8 or\ 128 and the sequence numbers cycle
  8660.  
  8661. through the entire range.
  8662.  
  8663. .LP
  8664.  
  8665. 2.3.2.2.2
  8666.  
  8667. \fISend state variable\fR 
  8668.  
  8669. \fI V(S)\fR 
  8670.  
  8671. .LP
  8672.  
  8673. The send state variable V(S) denotes the sequence number of the
  8674.  
  8675. next in\(hysequence I\ frame to be transmitted. V(S) can take on the values\ 0
  8676.  
  8677. through modulus minus\ 1. The value of V(S) is incremented by\ 1 with each
  8678.  
  8679. successive I\ frame transmission, but cannot exceed the N(R) of the last
  8680.  
  8681. received\ I or supervisory frame by more than the maximum number of outstanding 
  8682. I\ frames\ (\fIk\fR 
  8683.  
  8684. ). The value of\ k is defined in \(sc\ 2.4.8.6 below.
  8685.  
  8686. .LP
  8687.  
  8688.  
  8689.  
  8690. 2.3.2.2.3
  8691.  
  8692. \fISend sequence number\fR 
  8693.  
  8694. \fI N(S)\fR 
  8695.  
  8696. .LP
  8697.  
  8698. Only I frames contain N(S), the send sequence number of transmitted I\ 
  8699. frames. At the time that an in\(hysequence I\ frame is designated for 
  8700.  
  8701. transmission, the value of N(S) is set equal to the value of the send state
  8702.  
  8703. variable\ V(S).
  8704.  
  8705. .LP
  8706.  
  8707. 2.3.2.2.4
  8708.  
  8709. \fIReceive state variable\fR 
  8710.  
  8711. \fIV(R)\fR 
  8712.  
  8713. .LP
  8714.  
  8715. The receive state variable V(R) denotes the sequence number of the next 
  8716. in\(hysequence I\ frame expected to be received. V(R) can take on the values 
  8717. 0 through modulus minus\ 1. The value of V(R) is incremented by\ 1 by the 
  8718. receipt of an error\(hyfree, in\(hysequence I\ frame whose send sequence 
  8719. number N(S) equals 
  8720.  
  8721. the receive state variable V(R).
  8722.  
  8723. .LP
  8724.  
  8725. 2.3.2.2.5
  8726.  
  8727. \fIReceive sequence number\fR 
  8728.  
  8729. \fI N(R)\fR 
  8730.  
  8731. .LP
  8732.  
  8733. All I frames and supervisory frames contain N(R), the expected send sequence 
  8734. number of the next received I\ frame. At the time that a frame of the above 
  8735. types is designated for transmission, the value of N(R) is set equal to 
  8736. the current value of the receive state variable V(R). N(R) indicates that 
  8737. the DCE or DTE transmitting the N(R) has received correctly all I\ frames 
  8738. numbered up to and including N(R)\ \(em\ 1. 
  8739.  
  8740. .LP
  8741.  
  8742. 2.3.2.2.6
  8743.  
  8744. \fIPoll/Final bit\fR 
  8745.  
  8746. \fI P/F\fR 
  8747.  
  8748. .LP
  8749.  
  8750. All frames contain P/F, the Poll/Final bit. In command frames, the P/F 
  8751. bit is referred to as the P bit. In response frames, it is referred to 
  8752. as the F\ bit. 
  8753.  
  8754. .LP
  8755.  
  8756. 2.3.3
  8757.  
  8758. \fIFunctions of the Poll/Final bit\fR 
  8759.  
  8760. .LP
  8761.  
  8762. The Poll bit set to 1 is used by the DCE or DTE to solicit (poll) a response 
  8763. from the DTE or DCE, respectively. The Final bit set to\ 1 is used by the 
  8764. DCE or DTE to indicate the response frame transmitted by the DTE or DCE, 
  8765.  
  8766. respectively, as a result of the soliciting (poll) command.
  8767.  
  8768. .LP
  8769.  
  8770. The use of the P/F bit is described in \(sc\ 2.4.3 below.
  8771.  
  8772. .LP
  8773.  
  8774. 2.3.4
  8775.  
  8776. \fICommands and responses\fR 
  8777.  
  8778. .LP
  8779.  
  8780. For basic (modulo 8) operation, the commands and responses
  8781.  
  8782. represented in Table\ 5/X.25 will be supported by the DCE and the\ DTE.
  8783.  
  8784. .LP
  8785.  
  8786.  
  8787.  
  8788. For extended (modulo 128) operation, the commands and responses
  8789.  
  8790. represented in Table\ 6/X.25 will be supported by the DCE and the DTE.
  8791.  
  8792. .LP
  8793.  
  8794.  
  8795.  
  8796. For purposes of the LAPB procedures, the supervisory function bit encoding 
  8797. \*Q11\*U and those encodings of the modifier function bits in 
  8798.  
  8799. Tables\ 3/X.25 and 4/X.25 not identified in Tables\ 5/X.25 or 6/X.25 are
  8800.  
  8801. identified as \*Qundefined or not implemented\*U command and response control
  8802.  
  8803. fields.
  8804.  
  8805. .LP
  8806.  
  8807. The commands and responses in Tables 5/X.25 and 6/X.25 are defined as  follows:
  8808.  
  8809. .LP
  8810.  
  8811. 2.3.4.1
  8812.  
  8813. \fIInformation (I)\fR 
  8814.  
  8815. \fI command\fR 
  8816.  
  8817. .LP
  8818.  
  8819. The function of the information (I) command is to transfer across a data 
  8820. link a sequentially numbered frame containing an information field. 
  8821.  
  8822. .LP
  8823.  
  8824. .line
  8825.  
  8826. \fBTable 5/X.25 [T5.25], p.\fR 
  8827.  
  8828. .line
  8829.  
  8830. \fBTable 6/X.25 [T6.25], p.\fR 
  8831.  
  8832. 2.3.4.2
  8833.  
  8834. \fIReceive ready (RR)\fR 
  8835.  
  8836. \fI command and response\fR 
  8837.  
  8838. .LP
  8839.  
  8840. The receive ready (RR) supervisory frame is used by the DCE
  8841.  
  8842. or DTE to:
  8843.  
  8844. .LP
  8845.  
  8846.  
  8847.  
  8848. 1)
  8849.  
  8850. indicate it is ready to receive an I frame; and
  8851.  
  8852. .LP
  8853.  
  8854. 2)
  8855.  
  8856. acknowledge previously received I frames numbered up to and
  8857.  
  8858. including N(R)\ \(em\ 1.
  8859.  
  8860. .LP
  8861.  
  8862. An RR frame may be used to indicate the clearance of a busy
  8863.  
  8864. condition that was reported by the earlier transmission of an RNR frame 
  8865. by that same station (DCE or\ DTE). In addition to indicating the DCE or 
  8866. DTE status, the RR command with the P\ bit set to\ 1 may be used by the 
  8867. DCE or DTE to ask for the status of the DTE or DCE, respectively. 
  8868.  
  8869. .LP
  8870.  
  8871. 2.3.4.3
  8872.  
  8873. \fIReceive not ready (RNR) command and response\fR 
  8874.  
  8875. .LP
  8876.  
  8877. The receive not ready (RNR) supervisory frame is used by the DCE or DTE 
  8878. to indicate a busy condition; i.e.\ temporary inability to accept 
  8879.  
  8880. additional incoming I\ frames. I\ frames numbered up to and including N(R)\ 
  8881. \(em\ 1 
  8882.  
  8883. are acknowledged. I\ frame N(R) and any subsequent I\ frames received, if any,
  8884.  
  8885. are not acknowledged; the acceptance status of these I\ frames will be 
  8886. indicated in subsequent exchanges. 
  8887.  
  8888. .LP
  8889.  
  8890. In addition to indicating the DCE or DTE status, the RNR command with the 
  8891. P bit set to\ 1 may be used by an DCE or DTE to ask for the status of the 
  8892.  
  8893. DTE or DCE, respectively.
  8894.  
  8895. .LP
  8896.  
  8897. 2.3.4.4
  8898.  
  8899. \fIReject (REJ) command and response\fR 
  8900.  
  8901. .LP
  8902.  
  8903. The reject (REJ) supervisory frame is used by the DCE or DTE to request 
  8904. transmission of I\ frames starting with the frame numbered N(R). 
  8905.  
  8906. I\ frames numbered N(R)\ \(em\ 1 and below are acknowledged. Additional 
  8907. I\ frames 
  8908.  
  8909. pending initial transmission may be transmitted following the retransmitted
  8910.  
  8911. I\ frame(s).
  8912.  
  8913. .LP
  8914.  
  8915.  
  8916.  
  8917. Only one REJ exception condition for a given direction of information transfer 
  8918. may be established at any time. The REJ exception condition is cleared 
  8919. (reset) upon the receipt of an I\ frame with an N(S) equal to the N(R) 
  8920. of the 
  8921.  
  8922. REJ\ frame.
  8923.  
  8924. .LP
  8925.  
  8926. An REJ frame may be used to indicate the clearance of a busy condition 
  8927. that was reported by the earlier transmission of an RNR frame by that same 
  8928.  
  8929. station (DCE or\ DTE). In addition to indicating the DCE or DTE status, the
  8930.  
  8931. REJ\ command with the P bit set to\ 1 may be used by the DCE or\ DTE to ask for
  8932.  
  8933. the status of the DTE or\ DCE, respectively.
  8934.  
  8935. .LP
  8936.  
  8937. \fR 
  8938.  
  8939. 2.3.4.5
  8940.  
  8941. \fISet asynchronous balanced mode (SABM)\fR 
  8942.  
  8943. \fIcommand/\fR 
  8944.  
  8945. \fISet asynchronous balanced mode extended (SABME)\fR 
  8946.  
  8947.  
  8948.  
  8949. \fIcommand (subscription time option)\fR 
  8950.  
  8951. .LP
  8952.  
  8953.  
  8954.  
  8955. The SABM unnumbered command is used to place the addressed DCE or DTE in 
  8956. an asynchronous balanced mode (ABM) information transfer phase where all 
  8957. command/response control fields will be one\ octet in length. 
  8958.  
  8959. .LP
  8960.  
  8961. The SABME unnumbered command is used to place the addressed DCE or DTE 
  8962. in an asynchronous balanced mode\ (ABM) information transfer phase where 
  8963.  
  8964. numbered command/response control fields will be two octets in length, and
  8965.  
  8966. unnumbered command/response control fields will be one octet in length.
  8967.  
  8968. .LP
  8969.  
  8970.  
  8971.  
  8972. No information field is permitted with the SABM or SABME command. The transmission 
  8973. of a SABM/SABME command indicates the clearance of a busy 
  8974.  
  8975. condition that was reported by the earlier trans
  8976.  
  8977. mission\ of an RNR\ frame by   that
  8978.  
  8979. same station (DCE or\ DTE). The DCE or DTE confirms acceptance of SABM/SABME
  8980.  
  8981. [modulo\ 8 (basic) operation/modulo\ 128 (extended) operation] command by the
  8982.  
  8983. transmission, at the first opportunity, of a UA\ response. Upon acceptance of
  8984.  
  8985. this command, the DCE or DTE send state variable\ V(S) and receive state
  8986.  
  8987. variable V(R) are set to\ 0.
  8988.  
  8989. .LP
  8990.  
  8991. Previously transmitted I\ frames that are unacknowledged when this
  8992.  
  8993. command is actioned remain unac
  8994.  
  8995. knowledged.\ It is the responsibility of a
  8996.  
  8997. higher layer (e.g.\ Packet Layer or MLP) to recover from the possible loss of
  8998.  
  8999. the contents (e.g.\ packets) of such I\ frames.
  9000.  
  9001. .LP
  9002.  
  9003. \fINote\fR 
  9004.  
  9005. \ \(em\ The mode of operation of a data link [basic (modulo 8) or
  9006.  
  9007. extended (modulo\ 128)] is determined at subscription time and is only 
  9008. changed by going through a new subscription process. 
  9009.  
  9010. .LP
  9011.  
  9012. 2.3.4.6
  9013.  
  9014. \fIDisconnect (DISC)\fR 
  9015.  
  9016. \fI command\fR 
  9017.  
  9018. .LP
  9019.  
  9020. The DISC unnumbered command is used to terminate the mode
  9021.  
  9022. previously set. It is used to inform the DCE or DTE receiving the DISC 
  9023. command that the DTE or DCE sending the DISC command is suspending operation. 
  9024. No 
  9025.  
  9026. information field is permitted with the DISC command. Prior to actioning the
  9027.  
  9028. DISC command, the DCE or DTE receiving the DISC command confirms the acceptance 
  9029. of the DISC command by the transmission of a UA response. The DTE or DCE 
  9030.  
  9031. sending the DISC command enters the disconnected phase when it receives the
  9032.  
  9033. acknowledging UA response.
  9034.  
  9035. .LP
  9036.  
  9037. Previously transmitted I frames that are unacknowledged when this
  9038.  
  9039. command is actioned remain unacknowledged. It is the responsibility of 
  9040. a higher layer (e.g.\ Packet Layer or MLP) to recover from the possible 
  9041. loss of the 
  9042.  
  9043. contents (e.g.,\ packets) of such I frames.
  9044.  
  9045. .LP
  9046.  
  9047. 2.3.4.7
  9048.  
  9049. \fIUnnumbered acknowledgement (UA)\fR 
  9050.  
  9051. \fI response\fR 
  9052.  
  9053. .LP
  9054.  
  9055. The UA unnumbered response is used by the DCE or DTE to acknowledge the 
  9056. receipt and acceptance of the mode\(hysetting commands. Received mode\(hysetting 
  9057. commands are not actioned until the UA response is transmitted. The 
  9058.  
  9059. transmission of a UA response indicates the clearance of a busy condition 
  9060. that was reported by the earlier transmission of an RNR frame by that same 
  9061. station (DCE or DTE). No information field is permitted with the UA response. 
  9062.  
  9063. .LP
  9064.  
  9065.  
  9066.  
  9067. 2.3.4.8
  9068.  
  9069. \fIDisconnected mode (DM)\fR 
  9070.  
  9071. \fI response\fR 
  9072.  
  9073. .LP
  9074.  
  9075. The DM unnumbered response is used to report a status where the DCE or 
  9076. DTE is logically disconnected from the data link, and is in the disconnected 
  9077. phase. The DM response may be sent to indicate that the DCE or DTE has 
  9078. entered the disconnected phase without benefit of having received a DISC 
  9079. command, or, if sent in response to the reception of a mode setting command, 
  9080. is sent to 
  9081.  
  9082. inform the DTE or DCE that the DCE or DTE, respectively, is still in the
  9083.  
  9084. disconnected phase and cannot execute the set mode command. No information
  9085.  
  9086. field is permitted with the DM response.
  9087.  
  9088. .LP
  9089.  
  9090. A DCE or DTE in a disconnected phase will monitor received commands
  9091.  
  9092. and will react to an SABM/SABME command as outlined in \(sc\ 2.4.4 below, 
  9093. and will respond with a DM response with the F bit set to\ 1 to any other 
  9094. command 
  9095.  
  9096. received with the P\ bit set to\ 1.
  9097.  
  9098. .LP
  9099.  
  9100. 2.3.4.9
  9101.  
  9102. \fIFrame reject (FRMR)\fR 
  9103.  
  9104. \fI response\fR 
  9105.  
  9106. .LP
  9107.  
  9108. The FRMR unnumbered response is used by the DCE or DTE to report an error 
  9109. condition not recoverable by retransmission of the identical frame; 
  9110.  
  9111. i.e.\ at least one of the following conditions, which results from the 
  9112. receipt of a valid frame: 
  9113.  
  9114. .LP
  9115.  
  9116. 1)
  9117.  
  9118. the receipt of a command or response control field that is
  9119.  
  9120. undefined or not implemented;
  9121.  
  9122. .LP
  9123.  
  9124. 2)
  9125.  
  9126. the receipt of an I frame with an information field which
  9127.  
  9128. exceeds the maximum established length;
  9129.  
  9130. .LP
  9131.  
  9132. 3)
  9133.  
  9134. the receipt of an invalid N(R); or
  9135.  
  9136. .LP
  9137.  
  9138. 4)
  9139.  
  9140. the receipt of a frame with an information field which is
  9141.  
  9142. not permitted or the receipt of a supervisory or unnumbered
  9143.  
  9144. frame with incorrect length.
  9145.  
  9146. .LP
  9147.  
  9148. An undefined or not implemented control field is any of the
  9149.  
  9150. control field encodings that are not identified in Tables\ 5/X.25 or\ 6/X.25.
  9151.  
  9152. .LP
  9153.  
  9154.  
  9155.  
  9156. A valid N(R) must be within the range from the lowest send sequence
  9157.  
  9158. number N(S) of the still unacknowledged frame(s) to the current DCE send 
  9159. state variable inclusive (or to the current internal variable \fIx\fR 
  9160.  
  9161. if the DCE is in
  9162.  
  9163. the timer recovery condition as described in \(sc\ 2.4.5.9).
  9164.  
  9165. .LP
  9166.  
  9167.  
  9168.  
  9169. An information field which immediately follows the control field, and consists 
  9170. of\ 3 or 5\ octets [modulo\ 8 (basic) operation or modulo\ 128 (extended) 
  9171. operation, respectively], is returned with this response and provides the 
  9172.  
  9173. reason for the FRMR response. These formats are given in Tables\ 7/X.25
  9174.  
  9175. and\ 8/X.25.
  9176.  
  9177. .LP
  9178.  
  9179. 2.3.5
  9180.  
  9181. \fIException condition reporting and recovery\fR 
  9182.  
  9183. .LP
  9184.  
  9185. The error recovery procedures which are available to effect
  9186.  
  9187. recovery following the detection/occurrence of an 
  9188.  
  9189. exception condition
  9190.  
  9191.  at the Data Link Layer are described below. Exception conditions described 
  9192. are those situations which may occur as the result of transmission errors, 
  9193. DCE or DTE malfunction, or operational situations. 
  9194.  
  9195. .LP
  9196.  
  9197. 2.3.5.1
  9198.  
  9199. \fIBusy condition\fR 
  9200.  
  9201. .LP
  9202.  
  9203. The busy condition results when the DCE or DTE is temporarily
  9204.  
  9205. unable to continue to receive I frames due to internal constraints,
  9206.  
  9207. e.g.\ receive buffering limitations. In this case an RNR frame is transmitted
  9208.  
  9209. from the busy DCE or DTE. I\ frames pending transmission may be transmitted 
  9210. from the busy DCE or DTE prior to or following the RNR\ frame. 
  9211.  
  9212. .LP
  9213.  
  9214. An indication that the busy condition has cleared is communicated by the 
  9215. transmission of a UA (only in response to a SABM/SABME command), RR, REJ 
  9216. or SABM/SABME (modulo\ 8/modulo\ 128) frame. 
  9217.  
  9218. .LP
  9219.  
  9220. .line
  9221.  
  9222. \fBTable 7/X.25 [T7.25], p.\fR 
  9223.  
  9224. .line
  9225.  
  9226. \fBTable 8/X.25 [T8.25], p.\fR 
  9227.  
  9228. 2.3.5.2
  9229.  
  9230. \fIN(S) sequence error condition\fR 
  9231.  
  9232. .LP
  9233.  
  9234. The information field of all I frames received whose N(S) does not equal 
  9235. the receive state variable V(R) will be discarded. 
  9236.  
  9237. .LP
  9238.  
  9239. An N(S) sequence error exception condition occurs in the receiver when 
  9240. an I\ frame received contains an N(S) which is not equal to the receive 
  9241. state 
  9242.  
  9243. variable V(R) at the receiver. The receiver does not acknowledge (increment 
  9244. its receive state variable) the I\ frame causing the sequence error, or 
  9245. any I\ frame which may follow, until an I\ frame with the correct N(S) 
  9246. is received. 
  9247.  
  9248. .LP
  9249.  
  9250.  
  9251.  
  9252. A DCE or DTE which receives one or more valid I frames having sequence 
  9253. errors or subsequent supervisory frames (RR, RNR and REJ) shall accept 
  9254. the 
  9255.  
  9256. control information contained in the N(R) field and the P or F bit to perform 
  9257. data link control functions; e.g.\ to receive acknowledgement of previously 
  9258.  
  9259. transmitted I\ frames and to cause the DCE or DTE to respond (P bit set to 1).
  9260.  
  9261. .LP
  9262.  
  9263.  
  9264.  
  9265. The means specified in \(sc\(sc\ 2.3.5.2.1 and 2.3.5.2.2 shall be available 
  9266. for initiating the retransmission of lost or errored I\ frames following 
  9267. the 
  9268.  
  9269. occurrence of an N(S) sequence error condition.
  9270.  
  9271. .LP
  9272.  
  9273. 2.3.5.2.1
  9274.  
  9275. \fIREJ recovery\fR 
  9276.  
  9277. .LP
  9278.  
  9279. The REJ frame is used by a receiving DCE or DTE to initiate a
  9280.  
  9281. recovery (retransmission) following the detection of an N(S) sequence error.
  9282.  
  9283. .LP
  9284.  
  9285.  
  9286.  
  9287. With respect to each direction of transmission on the data link, only one 
  9288. \*Qsent REJ\*U exception condition from a DCE or DTE, to a DTE or DCE, 
  9289. is 
  9290.  
  9291. established at a time. A \*Qsent REJ\*U exception condition is cleared when the
  9292.  
  9293. requested I\ frame is received.
  9294.  
  9295. .LP
  9296.  
  9297.  
  9298.  
  9299. A DCE or DTE receiving a REJ frame initiates sequential
  9300.  
  9301. (re\(hy)transmission of I\ frames starting with the I\ frame indicated 
  9302. by the N(R) contained in the REJ frame. The retransmitted frames may contain 
  9303. an N(R) and a P bit that are updated from, and therefore different from, 
  9304. the ones contained in the originally transmitted I\ frames. 
  9305.  
  9306. .LP
  9307.  
  9308. 2.3.5.2.2
  9309.  
  9310. \fITime\(hyout recovery\fR 
  9311.  
  9312. .LP
  9313.  
  9314. If a DCE or DTE, due to a transmission error, does not receive (or receives 
  9315. and discards) a single I\ frame or the last I\ frame(s) in a sequence of 
  9316. I\ frames, it will not detect an N(S) sequence error condition and, therefore, 
  9317. will not transmit a REJ frame. The DTE or DCE which transmitted the 
  9318.  
  9319. unacknowledged I\ frame(s) shall, following the completion of a system 
  9320. specified time\(hyout period (see \(sc\(sc\ 2.4.5.1 and 2.4.5.9 below), 
  9321. take appropriate recovery action to determine at which I\ frame retransmission 
  9322. must begin. The 
  9323.  
  9324. retransmitted frame(s) may contain an N(R) and a P bit that is updated from,
  9325.  
  9326. and therefore different from, the ones contained in the originally transmitted 
  9327. frame(s). 
  9328.  
  9329. .LP
  9330.  
  9331. 2.3.5.3
  9332.  
  9333. \fIInvalid frame\fR 
  9334.  
  9335. \fI condition\fR 
  9336.  
  9337. .LP
  9338.  
  9339. Any frame which is invalid will be discarded, and no action is
  9340.  
  9341. taken as the result of that frame. An invalid frame is defined as one
  9342.  
  9343. which:
  9344.  
  9345. .LP
  9346.  
  9347. a)
  9348.  
  9349. is not properly bounded by two flags;
  9350.  
  9351. .LP
  9352.  
  9353. b)
  9354.  
  9355. in basic (modulo 8) operation, contains fewer than 32 bits
  9356.  
  9357. between flags; in extended (modulo\ 128) operation, contains
  9358.  
  9359. fewer than 40\ bits between flags of frames that contain sequence
  9360.  
  9361. numbers or 32\ bits between flags of frames that do not contain
  9362.  
  9363. sequence numbers;
  9364.  
  9365. .LP
  9366.  
  9367. c)
  9368.  
  9369. contains a Frame Check Sequence (FCS) error; or
  9370.  
  9371. .LP
  9372.  
  9373. d)
  9374.  
  9375. contains an address other than A or B (for single link
  9376.  
  9377. operation) or other than C or D (for multilink operation).
  9378.  
  9379. .LP
  9380.  
  9381.  
  9382.  
  9383. For those networks that are octet aligned, a detection of
  9384.  
  9385. non\(hyoctet alignment may be made at the Data Link Layer by adding a frame
  9386.  
  9387. validity check that requires the number of bits between the opening flag and
  9388.  
  9389. the closing flag, excluding bits inserted for transparency, to be an integral 
  9390. number of octets in length, or the frame is considered invalid. 
  9391.  
  9392. .LP
  9393.  
  9394. 2.3.5.4
  9395.  
  9396. \fIFrame rejection\fR 
  9397.  
  9398. \fI condition\fR 
  9399.  
  9400. .LP
  9401.  
  9402. A frame rejection condition is established upon the receipt of an error\(hyfree 
  9403. frame with one of the conditions listed in \(sc\ 2.3.4.9 above. 
  9404.  
  9405. .LP
  9406.  
  9407.  
  9408.  
  9409. At the DCE or DTE, this frame rejection exception condition is
  9410.  
  9411. reported by an FRMR response for appropriate DTE or DCE action, respectively. 
  9412. Once a DCE has established such an exception condition, no additional I\ 
  9413. frames are accepted until the condition is reset by the DTE, except for 
  9414. examination of the P bit. The FRMR response may be repeated at each opportunity, 
  9415. as specified in \(sc\ 2.4.7.3, until recovery is effected by the DTE, or 
  9416. until the DCE initiates its own recovery in case the DTE does not respond. 
  9417.  
  9418. .LP
  9419.  
  9420. 2.3.5.5
  9421.  
  9422. \fIExcessive idle channel state condition on incoming\fR 
  9423.  
  9424.  
  9425.  
  9426. \fIchannel\fR 
  9427.  
  9428. .LP
  9429.  
  9430. Upon detection of an idle channel state condition (see \(sc\ 2.2.12.2 above) 
  9431. on the incoming channel, the DCE shall wait for a period\ T3 (see 
  9432.  
  9433. \(sc\ 2.4.8.3 below) without taking any specific action, waiting for detection 
  9434. of a return to the active channel state (i.e.,\ detection of at least one 
  9435. flag 
  9436.  
  9437. sequence). After the period\ T3, the DCE shall notify the higher layer 
  9438. (e.g.\ the Packet Layer or the MLP) of the excessive idle channel state 
  9439. condition, but 
  9440.  
  9441. shall not take any action that would preclude the DTE from establishing the
  9442.  
  9443. data link by normal data link set\(hyup procedures.
  9444.  
  9445. .LP
  9446.  
  9447. \fINote\fR 
  9448.  
  9449. \ \(em\ Other actions to be taken by the DCE at the Data Link Layer upon 
  9450. expiration of period\ T3 is a subject for further study. 
  9451.  
  9452. .LP
  9453.  
  9454.  
  9455.  
  9456. 2.4
  9457.  
  9458. \fIDescription of the \fR 
  9459.  
  9460. \fILAPB procedure\fR 
  9461.  
  9462. .LP
  9463.  
  9464. 2.4.1
  9465.  
  9466. \fILAPB basic and extended modes of operation\fR 
  9467.  
  9468. .LP
  9469.  
  9470. In accordance with the system choice made by the DTE at
  9471.  
  9472. subscription time, the DCE will either support modulo\ 8 (basic) operation or
  9473.  
  9474. will support modulo\ 128 (extended) operation. Changing from basic operation 
  9475. to extended operation, or vice versa, in the DCE requires resubscription 
  9476. by the 
  9477.  
  9478. DTE for the desired service, and is not supported dynamically.
  9479.  
  9480. .LP
  9481.  
  9482. Table 5/X.25 indicates the command and response control field formats used 
  9483. with the basic (modulo\ 8) service. The mode\(hysetting command employed 
  9484. to 
  9485.  
  9486. initialize (set up) or reset the basic mode is the SABM command. Table 
  9487. 6/X.25 indicates the command and response control field formats used with 
  9488. the extended (modulo\ 128) service. The mode\(hysetting command employed 
  9489. to initialize (set up) or reset the extended mode is the SABME command. 
  9490.  
  9491. .LP
  9492.  
  9493. 2.4.2
  9494.  
  9495. \fILAPB procedure for addressing\fR 
  9496.  
  9497. .LP
  9498.  
  9499. The address field identifies a frame as either a command or a
  9500.  
  9501. response. A command frame contains the address of the DCE or DTE to which 
  9502. the command is being sent. A response frame contains the address of the 
  9503. DCE or DTE sending the frame. 
  9504.  
  9505. .LP
  9506.  
  9507. In order to allow differentiation between single link operation and
  9508.  
  9509. the optional multilink operation for diagnostic and/or maintenance reasons,
  9510.  
  9511. different address pair encodings are assigned to data links operating with
  9512.  
  9513. multilink procedure compared to data links operating with the single link
  9514.  
  9515. procedure.
  9516.  
  9517. .LP
  9518.  
  9519. Frames containing commands transferred from the DCE to the DTE will
  9520.  
  9521. contain the address\ A for the single link operation and address\ C for the
  9522.  
  9523. multilink operation.
  9524.  
  9525. .LP
  9526.  
  9527. Frames containing responses transferred from the DCE to the DTE will contain 
  9528. the address\ B for the single link operation and address\ D for the 
  9529.  
  9530. multilink operation.
  9531.  
  9532. .LP
  9533.  
  9534.  
  9535.  
  9536. Frames containing commands transferred from the DTE to the DCE shall contain 
  9537. the address\ B for the single link operation and address\ D for the 
  9538.  
  9539. multilink operation.
  9540.  
  9541. .LP
  9542.  
  9543. Frames containing responses transferred from the DTE to the DCE shall contain 
  9544. the address\ A for the single link operation and address\ C for the 
  9545.  
  9546. multilink operation.
  9547.  
  9548. .LP
  9549.  
  9550. These addresses are coded as follows:
  9551.  
  9552. .LP
  9553.  
  9554. Address
  9555.  
  9556. 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8
  9557.  
  9558. .LP
  9559.  
  9560. Single link operation
  9561.  
  9562. \ \ A
  9563.  
  9564. 1\ 1\ 0\ 0\ 0\ 0\ 0\ 0
  9565.  
  9566. .line
  9567.  
  9568. \ \ B
  9569.  
  9570. 1\ 0\ 0\ 0\ 0\ 0\ 0\ 0
  9571.  
  9572. .LP
  9573.  
  9574. Multilink operation
  9575.  
  9576. \ \ C
  9577.  
  9578. 1\ 1\ 1\ 1\ 0\ 0\ 0\ 0
  9579.  
  9580. .line
  9581.  
  9582. \ \ D
  9583.  
  9584. 1\ 1\ 1\ 0\ 0\ 0\ 0\ 0
  9585.  
  9586. .LP
  9587.  
  9588. \fINote\fR 
  9589.  
  9590. \ \(em\ The DCE will discard all frames received with an address other 
  9591. than\ A or\ B (single link operation), or\ C or\ D (multilink operation). 
  9592.  
  9593. .LP
  9594.  
  9595. 2.4.3
  9596.  
  9597. \fILAPB procedure for the use of the P/F bit\fR 
  9598.  
  9599. .LP
  9600.  
  9601. The DCE or DTE receiving an SABM/SABME, DISC, supervisory command or I\ 
  9602. frame with the P\ bit set to\ 1 will set the F\ bit to\ 1 in the next response 
  9603. frame it transmits. 
  9604.  
  9605. .LP
  9606.  
  9607. The response frame returned by the DCE to an SABM/SABME or DISC
  9608.  
  9609. command with the P\ bit set to\ 1 will be a UA or DM response with the 
  9610. F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  9611. with the P\ bit set to\ 1, received during the information transfer phase, 
  9612. will be an RR, REJ, RNR or FRMR response with the F\ bit set to\ 1. The 
  9613. response frame returned by the 
  9614.  
  9615. DCE to a supervisory command with the P\ bit set to\ 1, received during the
  9616.  
  9617. information transfer phase, will be an RR, REJ, RNR or FRMR response with 
  9618. the F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  9619. or 
  9620.  
  9621. supervisory frame with the P\ bit set to\ 1, received during the disconnected
  9622.  
  9623. phase, will be a DM response with the F\ bit set to\ 1.
  9624.  
  9625. .LP
  9626.  
  9627. The P bit may be used by the DCE in conjunction with the timer
  9628.  
  9629. recovery condition (see \(sc\ 2.4.5.9 below).
  9630.  
  9631. .LP
  9632.  
  9633. \fINote\fR 
  9634.  
  9635. \ \(em\ Other use of the P bit by the DCE is a subject for further
  9636.  
  9637. study.
  9638.  
  9639. .LP
  9640.  
  9641. 2.4.4
  9642.  
  9643. \fILAPB procedure for data link set\(hyup and disconnection\fR 
  9644.  
  9645. .LP
  9646.  
  9647.  
  9648.  
  9649. 2.4.4.1
  9650.  
  9651. \fIData link set\(hyup\fR 
  9652.  
  9653. .LP
  9654.  
  9655. The DCE will indicate that it is able to set up the data link by
  9656.  
  9657. transmitting contiguous flags (active channel state).
  9658.  
  9659. .LP
  9660.  
  9661. Either the DTE or the DCE may initiate data link set\(hyup. Prior to
  9662.  
  9663. initiation of data link set\(hyup, either the DCE or the DTE may initiate data
  9664.  
  9665. link
  9666.  
  9667. disconnection (see \(sc\ 2.4.4.3) for the purpose of insuring that the 
  9668. DCE and the DTE are in the same phase. The DCE may also transmit an unsolicited 
  9669. DM response to request the DTE to initiate data link set\(hyup. 
  9670.  
  9671. .LP
  9672.  
  9673. The DTE shall initiate data link set\(hyup by transmitting an SABM/SABME 
  9674. command to the DCE. If, upon receipt of the SABM/SABME command correctly, 
  9675. the DCE determines that it can enter the information transfer phase, it 
  9676. will return a UA response to the DTE, will reset its send and receive state 
  9677. variables V(S) and V(R) to zero, and will consider that the data link is 
  9678. set up. If, upon 
  9679.  
  9680. receipt
  9681.  
  9682. of the SABM/SABME command correctly, the DCE determines that it cannot enter
  9683.  
  9684. the information transfer phase, it will return a DM response to the DTE as a
  9685.  
  9686. denial to the data link set\(hyup initialization and will consider that the
  9687.  
  9688. data link is
  9689.  
  9690. \fInot\fR 
  9691.  
  9692.  set up. In order to avoid misinterpretation of the DM response received, 
  9693. it is suggested that the DTE always sends its SABM/SABME command with the 
  9694. P\ bit set to\ 1. Otherwise, it is not possible to differentiate a DM response 
  9695. intended as a denial to data link set\(hyup from a DM response that is 
  9696. issued in a separate unsolicited sense as a request for a mode\(hysetting 
  9697. command (as described 
  9698.  
  9699. in\ \(sc\ 2.4.4.4.2).
  9700.  
  9701. .LP
  9702.  
  9703. The DCE will initiate data link set\(hyup by transmitting an SABM/SABME 
  9704. command to the DTE and starting its Timer\ T1 in order to determine when 
  9705. too 
  9706.  
  9707. much time has elapsed waiting for a reply (see \(sc\ 2.4.8.1 below). Upon 
  9708. reception of a UA response from the DTE, the DCE will reset its send and 
  9709. receive state 
  9710.  
  9711. variables\ V(S) and\ V(R) to zero, will stop its Timer\ T1, and will consider 
  9712. that the data link is set up. Upon reception of a DM response from the 
  9713. DTE as a 
  9714.  
  9715. denial
  9716.  
  9717. to the data link set\(hyup initialization, the DCE will stop its Timer\ 
  9718. T1 and will consider that the data link is \fInot\fR 
  9719.  
  9720. set up.
  9721.  
  9722. .LP
  9723.  
  9724.  
  9725.  
  9726. The DCE, having sent the SABM/SABME command, will ignore and discard any 
  9727. frames except an SABM/SABME or DISC command, or a UA or DM response 
  9728.  
  9729. received from the DTE. The receipt of an SABM/SABME or DISC command from the
  9730.  
  9731. DTE will result in a collision situation that is resolved per \(sc\ 2.4.4.5 
  9732. below. Frames other than the UA and DM responses sent in response to a 
  9733. received 
  9734.  
  9735. SABM/SABME or DISC command will be sent only after the data link is set 
  9736. up and if no outstanding SABM/SABME command exists. 
  9737.  
  9738. .LP
  9739.  
  9740. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  9741. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  9742.  
  9743. resend the SABM/SABME command and will restart Timer\ T1. After transmission 
  9744. of the SABM/SABME command N2 times by the DCE, appropriate higher layer 
  9745. recovery action will be initiated. The value of N2 is defined in \(sc\ 
  9746. 2.4.8.4 below. 
  9747.  
  9748. .LP
  9749.  
  9750. 2.4.4.2
  9751.  
  9752. \fIInformation transfer phase\fR 
  9753.  
  9754. .LP
  9755.  
  9756. After having transmitted the UA response to the SABM/SABME command or having 
  9757. received the UA response to a transmitted SABM/SABME command, the DCE will 
  9758. accept and transmit I and supervisory frames according to the procedures 
  9759. described in \(sc\ 2.4.5 below. 
  9760.  
  9761. .LP
  9762.  
  9763.  
  9764.  
  9765. When receiving the SABM/SABME command while in the information
  9766.  
  9767. transfer phase, the DCE will conform to the data link resetting procedure
  9768.  
  9769. described in \(sc\ 2.4.7 below.
  9770.  
  9771. .LP
  9772.  
  9773. 2.4.4.3
  9774.  
  9775. \fIData link disconnection\fR 
  9776.  
  9777. .LP
  9778.  
  9779. The DTE shall initiate a disconnect of the data link by
  9780.  
  9781. transmitting a DISC command to the DCE. On correctly receiving a DISC command 
  9782. in the information transfer phase, the DCE will send a UA response and 
  9783. enter 
  9784.  
  9785. the disconnected phase. On correctly receiving a DISC command in the
  9786.  
  9787. disconnected phase, the DCE will send a DM response and remain in the
  9788.  
  9789. disconnected phase. In order to avoid misinterpretation of the DM response
  9790.  
  9791. received, it is suggested that the DTE always sends its DISC command with 
  9792. the P\ bit set to\ 1. Otherwise, it is not possible to differentiate a 
  9793. DM response 
  9794.  
  9795. intended as an indication that the DCE is already in the disconnected phase
  9796.  
  9797. from a DM response that is issued in a separate unsolicited sense as a 
  9798. request for a mode\(hysetting command (as described in \(sc\ 2.4.4.4.2). 
  9799.  
  9800. .LP
  9801.  
  9802.  
  9803.  
  9804. The DCE will initiate a disconnect of the data link by transmitting a DISC 
  9805. command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 below). 
  9806. Upon reception of an UA response from the DTE, the DCE will stop its Timer\ 
  9807. T1 and 
  9808.  
  9809. will enter the disconnected phase. Upon reception of a DM response from 
  9810. the DTE as an indication that the DTE was already in the disconnected phase, 
  9811. the DCE 
  9812.  
  9813. will stop its Timer\ T1 and will enter the disconnected phase.
  9814.  
  9815. .LP
  9816.  
  9817. The DCE, having sent the DISC command, will ignore and discard any
  9818.  
  9819. frames except an SABM/SABME or DISC command, or a UA or DM response received
  9820.  
  9821. from the DTE. The receipt of an SABM/SABME or DISC command from the DTE will
  9822.  
  9823. result in a collision situation that is resolved per \(sc\ 2.4.4.5 below.
  9824.  
  9825. .LP
  9826.  
  9827.  
  9828.  
  9829. After the DCE sends the DISC command, if a UA or DM response is not
  9830.  
  9831. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  9832. resend the DISC command and will restart Timer\ T1. After transmission 
  9833. of the DISC 
  9834.  
  9835. command N2 times by the DCE, appropriate higher layer recovery action will 
  9836. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  9837.  
  9838. .LP
  9839.  
  9840. 2.4.4.4
  9841.  
  9842. \fIDisconnected phase\fR 
  9843.  
  9844. .LP
  9845.  
  9846. 2.4.4.4.1
  9847.  
  9848. After having received a DISC command from the DTE and
  9849.  
  9850. returned a UA response to the DTE, or having received the UA response to a
  9851.  
  9852. transmitted DISC command, the DCE will enter the disconnected phase.
  9853.  
  9854. .LP
  9855.  
  9856. In the disconnected phase, the DCE may initiate data link set\(hyup. In 
  9857. the disconnected phase, the DCE will react to the receipt of an SABM/SABME 
  9858. command as described in \(sc\ 2.4.4.1 above and will transmit a DM response 
  9859. in 
  9860.  
  9861. answer to a received DISC command. When receiving any other command (defined, 
  9862. or undefined or not implemented) with the P\ bit set to\ 1, the DCE will 
  9863. transmit a DM response with the F\ bit set to\ 1. Other frames received 
  9864. in the 
  9865.  
  9866. disconnected phase will be ignored by the DCE.
  9867.  
  9868. .LP
  9869.  
  9870. 2.4.4.4.2
  9871.  
  9872. When the DCE enters the disconnected phase after
  9873.  
  9874. detecting error conditions as listed in \(sc\ 2.4.6 below, or after an internal
  9875.  
  9876. malfunction, it may indicate this by sending a DM response rather than 
  9877. a DISC command. In these cases, the DCE will transmit a DM response and 
  9878. start its 
  9879.  
  9880. Timer\ T1 (see \(sc\ 2.4.8.1 below).
  9881.  
  9882. .LP
  9883.  
  9884. If Timer T1 runs out before the reception of an SABM/SABME or DISC command 
  9885. from the DTE, the DCE will retransmit the DM response and restart 
  9886.  
  9887. Timer\ T1. After transmission of the DM response N2 times, the DCE will 
  9888. remain in the disconnected phase and appropriate recovery actions will 
  9889. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  9890.  
  9891. .LP
  9892.  
  9893. Alternatively, after an internal malfunction, the DCE may either
  9894.  
  9895. initiate a data link resetting procedure (see \(sc\ 2.4.7 below) or disconnect 
  9896. the data link (see \(sc\ 2.4.4.3 above) prior to initiating a data link 
  9897. set\(hyup 
  9898.  
  9899. procedure (see \(sc\ 2.4.4.1 above).
  9900.  
  9901. .LP
  9902.  
  9903. 2.4.4.5
  9904.  
  9905. \fICollision of unnumbered commands\fR 
  9906.  
  9907. .LP
  9908.  
  9909. Collision situations shall be resolved in the following way:
  9910.  
  9911. .LP
  9912.  
  9913. 2.4.4.5.1
  9914.  
  9915. If the sent and received unnumbered commands are the
  9916.  
  9917. same, the DCE and the DTE shall each send the UA response at the earliest
  9918.  
  9919. possible opportunity. The DCE shall enter the indicated phase either,
  9920.  
  9921. .LP
  9922.  
  9923.  
  9924.  
  9925. 1)
  9926.  
  9927. after receiving the UA response,
  9928.  
  9929. .LP
  9930.  
  9931. 2)
  9932.  
  9933. after sending the UA response, or
  9934.  
  9935. .LP
  9936.  
  9937. 3)
  9938.  
  9939. after timing out waiting for the UA response having sent a
  9940.  
  9941. UA response.
  9942.  
  9943. .LP
  9944.  
  9945. In the case of 2) above, the DCE will accept a subsequent UA
  9946.  
  9947. response to the mode\(hysetting command it issued without causing an exception
  9948.  
  9949. condition if received within the time\(hyout interval.
  9950.  
  9951. .LP
  9952.  
  9953.  
  9954.  
  9955. 2.4.4.5.2
  9956.  
  9957. If the sent and received unnumbered commands are
  9958.  
  9959. different, the DCE and the DTE shall each enter the disconnected phase and
  9960.  
  9961. issue a DM response at the earliest possible opportunity.
  9962.  
  9963. .LP
  9964.  
  9965. 2.4.4.6
  9966.  
  9967. \fICollision of DM response with SABM/SABME or DISC\fR 
  9968.  
  9969.  
  9970.  
  9971. \fIcommand\fR 
  9972.  
  9973. .LP
  9974.  
  9975. When a DM response is issued by the DCE or DTE as an unsolicited
  9976.  
  9977. response to request the DTE or DCE, respectively, to issue a mode\(hysetting
  9978.  
  9979. command as described in \(sc\ 2.4.4.4, a collision between an SABM/SABME 
  9980. or DISC 
  9981.  
  9982. command and the unsolicited DM response may occur. In order to avoid
  9983.  
  9984. misinterpretation of the DM response received, the DTE always sends its
  9985.  
  9986. SABM/SABME or DISC command with the P\ bit set to\ 1.
  9987.  
  9988. .LP
  9989.  
  9990. 2.4.4.7
  9991.  
  9992. \fICollision of DM responses\fR 
  9993.  
  9994. .LP
  9995.  
  9996. A contention situation may occur when both the DCE and the DTE
  9997.  
  9998. issue a DM response to request a mode\(hysetting command. In this case, the DTE
  9999.  
  10000. will issue an SABM/SABME command to resolve the contention situation.
  10001.  
  10002. .LP
  10003.  
  10004.  
  10005.  
  10006. 2.4.5
  10007.  
  10008. \fILAPB procedures for information transfer\fR 
  10009.  
  10010. .LP
  10011.  
  10012. The procedures which apply to the transmission of I\ frames in each direction 
  10013. during the information transfer phase are described below. 
  10014.  
  10015. .LP
  10016.  
  10017. In the following, \*Qnumber one higher\*U is in reference to a
  10018.  
  10019. continuously repeated sequence series, i.e., 7 is 1\ higher than 6 and 0 is
  10020.  
  10021. 1\ higher than 7 for modulo\ 8 series, and 127 is 1\ higher than 126 and 0 is
  10022.  
  10023. 1\ higher than 127 for modulo\ 128 series.
  10024.  
  10025. .LP
  10026.  
  10027. 2.4.5.1
  10028.  
  10029. \fISending I frames\fR 
  10030.  
  10031. .LP
  10032.  
  10033. When the DCE has an I frame to transmit (i.e. an I frame not
  10034.  
  10035. already transmitted, or having to be retransmitted as described in \(sc\ 
  10036. 2.4.5.6 
  10037.  
  10038. below), it will transmit it with an N(S) equal to its current send state
  10039.  
  10040. variable V(S), and an N(R) equal to its current receive state variable 
  10041. V(R). At the end of the transmission of the I\ frame, the DCE will increment 
  10042. its send 
  10043.  
  10044. state variable V(S) by\ 1.
  10045.  
  10046. .LP
  10047.  
  10048. If Timer T1 is not running at the time of transmission of an I frame, it 
  10049. will be started. 
  10050.  
  10051. .LP
  10052.  
  10053. If the send state variable V(S) is equal to the last value of N(R)
  10054.  
  10055. received plus \fIk\fR 
  10056.  
  10057. (where \fIk\fR 
  10058.  
  10059. is the maximum number of outstanding I\ frames \(em
  10060.  
  10061. see \(sc\ 2.4.8.6 below), the DCE will not transmit any new I\ frames, but may
  10062.  
  10063. retransmit an I\ frame as described in \(sc\(sc\ 2.4.5.6 or 2.4.5.9 below.
  10064.  
  10065. .LP
  10066.  
  10067. When the DCE is in the busy condition, it may still transmit I frames, 
  10068. provided that the DTE is not busy. When the DCE is in the frame rejection 
  10069.  
  10070. condition, it will stop transmitting I\ frames.
  10071.  
  10072. .LP
  10073.  
  10074. 2.4.5.2
  10075.  
  10076. \fIReceiving an I frame\fR 
  10077.  
  10078. .LP
  10079.  
  10080. 2.4.5.2.1
  10081.  
  10082. When the DCE is not in a busy condition and receives a valid I\ frame whose 
  10083. send sequence number N(S) is equal to the DCE receive state 
  10084.  
  10085. variable V(R), the DCE will accept the information field of this frame,
  10086.  
  10087. increment by one its receive state variable V(R), and act as follows:
  10088.  
  10089. .LP
  10090.  
  10091.  
  10092.  
  10093. a)
  10094.  
  10095. If the DCE is still not in a busy condition:
  10096.  
  10097. .LP
  10098.  
  10099. i)
  10100.  
  10101. If an I frame is available for transmission by the
  10102.  
  10103. DCE, it may act as in \(sc\ 2.4.5.1 above and acknowledge
  10104.  
  10105. the received I frame by setting N(R) in the control field
  10106.  
  10107. of the next transmitted I\ frame to the value of the DCE
  10108.  
  10109. receive state variable V(R). Alternatively, the DCE may
  10110.  
  10111. acknowledge the received I\ frame by transmitting an RR
  10112.  
  10113. frame with the N(R) equal to the value of the DCE receive
  10114.  
  10115. state variable V(R).
  10116.  
  10117. .LP
  10118.  
  10119. ii)
  10120.  
  10121. If no I frame is available for transmission by the
  10122.  
  10123. DCE, it will transmit an RR frame with N(R) equal to the
  10124.  
  10125. value of the DCE receive state variable V(R).
  10126.  
  10127. .LP
  10128.  
  10129.  
  10130.  
  10131. b)
  10132.  
  10133. If the DCE is now in a busy condition, it will transmit an
  10134.  
  10135. RNR frame with N(R) equal to the value of the DCE receive
  10136.  
  10137. state variable V(R) (see \(sc\ 2.4.5.8).
  10138.  
  10139. .LP
  10140.  
  10141.  
  10142.  
  10143. 2.4.5.2.2
  10144.  
  10145. When the DCE is in a busy condition, it may ignore the
  10146.  
  10147. information field contained in any received I\ frame.
  10148.  
  10149. .LP
  10150.  
  10151. 2.4.5.3
  10152.  
  10153. \fIReception of invalid frames\fR 
  10154.  
  10155. .LP
  10156.  
  10157. When the DCE receives an invalid frame (see \(sc\ 2.3.5.3), this frame 
  10158. will be discarded. 
  10159.  
  10160. .LP
  10161.  
  10162. 2.4.5.4
  10163.  
  10164. \fIReception of out\(hyof\(hysequence I frames\fR 
  10165.  
  10166. .LP
  10167.  
  10168. When the DCE receives a valid I frame whose send sequence number
  10169.  
  10170. N(S) is incorrect, i.e.,\ not equal to the current DCE receive state variable
  10171.  
  10172. V(R), it will discard the information field of the I\ frame and transmit 
  10173. an REJ frame with the N(R) set to one higher than the N(S) of the last 
  10174. correctly 
  10175.  
  10176. received I\ frame. The REJ frame will be a command frame with the P\ bit 
  10177. set to\ 1 if an acknowledged transfer of the retransmission request is 
  10178. required; 
  10179.  
  10180. otherwise the REJ frame may be either a command or a response frame. The DCE
  10181.  
  10182. will then discard the information field of all I\ frames received until the
  10183.  
  10184. expected I\ frame is correctly received. When receiving the expected I\ frame,
  10185.  
  10186. the DCE will then acknowledge the I\ frame as described in \(sc\ 2.4.5.2 
  10187. above. The DCE will use the N(R) and P\ bit information in the discarded 
  10188. I\ frames as 
  10189.  
  10190. described in \(sc\ 2.3.5.2 above.
  10191.  
  10192. .LP
  10193.  
  10194. 2.4.5.5
  10195.  
  10196. \fIReceiving acknowledgement\fR 
  10197.  
  10198. .LP
  10199.  
  10200. When correctly receiving an I frame or a supervisory frame (RR, RNR or 
  10201. REJ), even in the busy condition, the DCE will consider the N(R) contained 
  10202. in this frame as an acknowledgement for all I\ frames it has transmitted 
  10203. with an N(S) up to and including the received N(R)\(em1. The DCE will stop 
  10204. Timer\ T1 when it correctly receives an I\ frame or a supervisory frame 
  10205. with the N(R) higher 
  10206.  
  10207. than the last received N(R) (actually acknowledging some I\ frames), or 
  10208. an REJ frame with an N(R) equal to the last received N(R). 
  10209.  
  10210. .LP
  10211.  
  10212.  
  10213.  
  10214. If Timer T1 has been stopped by the receipt on an I, RR or RNR frame, and 
  10215. if there are outstanding I\ frames still unacknowledged, the DCE will 
  10216.  
  10217. restart Timer\ T1. If Timer\ T1 then runs out, the DCE will follow the 
  10218. recovery procedure (\(sc\ 2.4.5.9 below) with respect to the unacknowledged 
  10219. I\ frames. If 
  10220.  
  10221. Timer\ T1 has been stopped by the receipt of an REJ frame, the DCE will 
  10222. follow the retransmission procedures in \(sc\ 2.4.5.6 below. 
  10223.  
  10224. .LP
  10225.  
  10226. 2.4.5.6
  10227.  
  10228. \fIReceiving an REJ frame\fR 
  10229.  
  10230. .LP
  10231.  
  10232. When receiving an REJ frame, the DCE will set its send state
  10233.  
  10234. variable V(S) to the N(R) received in the REJ control field. It will transmit 
  10235. the corresponding I\ frame as soon as it is available or retransmit it 
  10236. in 
  10237.  
  10238. accordance with the procedures described in \(sc\ 2.4.5.1 above. (Re)transmission 
  10239. will conform to the following procedure: 
  10240.  
  10241. .LP
  10242.  
  10243. i)
  10244.  
  10245. if the DCE is transmitting a supervisory command or response
  10246.  
  10247. when it receives the REJ frame, it will complete that
  10248.  
  10249. transmission before commencing transmission of the requested
  10250.  
  10251. I\ frame;
  10252.  
  10253. .LP
  10254.  
  10255.  
  10256.  
  10257. ii)
  10258.  
  10259. if the DCE is transmitting an unnumbered command or
  10260.  
  10261. response when it receives the REJ frame, it will ignore the
  10262.  
  10263. request for retransmission;
  10264.  
  10265. .LP
  10266.  
  10267. iii)
  10268.  
  10269. if the DCE is transmitting an I frame when the REJ frame
  10270.  
  10271. is received, it may abort the I\ frame and commence transmission
  10272.  
  10273. of the requested I\ frame immediately after abortion;
  10274.  
  10275. .LP
  10276.  
  10277. iv)
  10278.  
  10279. if the DCE is not transmitting any frame when the REJ frame
  10280.  
  10281. is received, it will commence transmission of the requested
  10282.  
  10283. I\ frame immediately.
  10284.  
  10285. .LP
  10286.  
  10287. In all cases, if other unacknowledged I frames had already been
  10288.  
  10289. transmitted following the one indicated in the REJ frame, then those I 
  10290. frames will be retransmitted by the DCE following the retransmission of 
  10291. the requested I\ frame. Other I\ frames not yet transmitted may be transmitted 
  10292. following the 
  10293.  
  10294. retransmitted I\ frames.
  10295.  
  10296. .LP
  10297.  
  10298. If the REJ frame was received from the DTE as a command with the P bit 
  10299. set to\ 1, the DCE will transmit an RR, RNR or REJ response with the F 
  10300. bit set to\ 1 before transmitting or retransmitting the corresponding I\ 
  10301. frame. 
  10302.  
  10303. .LP
  10304.  
  10305. 2.4.5.7
  10306.  
  10307. \fIReceiving an RNR frame\fR 
  10308.  
  10309. .LP
  10310.  
  10311. After receiving an RNR frame whose N(R) acknowledges all frames
  10312.  
  10313. previously transmitted, the DCE will stop Timer\ T1 and may then transmit
  10314.  
  10315. an I\ frame, with the P\ bit set to\ 0, whose send sequence number is
  10316.  
  10317. equal to the N(R) indicated in the RNR frame, restarting Timer\ T1 as it 
  10318. does. After receiving an RNR frame whose N(R) indicates a previously transmitted 
  10319.  
  10320. frame, the DCE will not transmit or retransmit any I\ frame, Timer\ T1 being
  10321.  
  10322. already running. In either case, if the Timer\ T1 runs out before receipt 
  10323. of a busy clearance indication, the DCE will follow the procedure described 
  10324. in 
  10325.  
  10326. \(sc\ 2.4.5.9\ below. In any case, the DCE will not transmit any other 
  10327. I\ frames 
  10328.  
  10329. before receiving an RR or REJ frame, or before the completion of a link
  10330.  
  10331. resetting procedure.
  10332.  
  10333. .LP
  10334.  
  10335. Alternatively, after receiving an RNR frame, the DCE may wait for a
  10336.  
  10337. period of time (e.g.,\ the length of the Timer\ T1) and then transmit a
  10338.  
  10339. supervisory command frame (RR, RNR or REJ) with the P\ bit set to\ 1, and 
  10340. start Timer\ T1, in order to determine if there is any change in the receive 
  10341. status of the DTE. The DTE shall respond to the P\ bit set to\ 1 with a 
  10342. supervisory 
  10343.  
  10344. response frame (RR, RNR or REJ) with the F\ bit set to\ 1 indicating either
  10345.  
  10346. continuance of the busy condition (RNR) or clearance of the busy condition 
  10347. (RR or REJ). Upon receipt of the DTE response, Timer\ T1 is stopped. 
  10348.  
  10349. .LP
  10350.  
  10351.  
  10352.  
  10353. 1)
  10354.  
  10355. If the response is the RR or REJ response, the busy
  10356.  
  10357. condition is cleared and the DCE may transmit I\ frames beginning
  10358.  
  10359. with the I\ frame identified by the N(R) in the received response
  10360.  
  10361. frame.
  10362.  
  10363. .LP
  10364.  
  10365. 2)
  10366.  
  10367. If the response is the RNR response, the busy condition
  10368.  
  10369. still exists, and the DCE will after a period of time (e.g.\ the
  10370.  
  10371. length of Timer\ T1) repeat the enquiry of the DTE receive
  10372.  
  10373. status.
  10374.  
  10375. .LP
  10376.  
  10377. If Timer T1 runs out before a status response is received, the
  10378.  
  10379. enquiry process above is repeated. If N2 attempts to get a status response 
  10380. fail (i.e.\ Timer\ T1 runs out N2\ times), the DCE will initiate a data 
  10381. link resetting procedure as described in \(sc\ 2.4.7.2\ below or will transmit 
  10382. a DM response to ask the DTE to initiate a data link set\(hyup procedure 
  10383. as described in \(sc\ 2.4.4.1 and enter the disconnected phase. The value 
  10384. of N2 is defined in \(sc\ 2.4.8.4\ below. 
  10385.  
  10386. .LP
  10387.  
  10388.  
  10389.  
  10390. If, at any time during the enquiry process, an unsolicited RR or REJ frame 
  10391. is received from the DTE, it will be considered to be an indication of 
  10392.  
  10393. clearance of the busy condition. Should the unsolicited RR or REJ frame be a
  10394.  
  10395. command frame with the P bit set to\ 1, the appropriate response frame 
  10396. with the F\ bit set to 1 must be transmitted before the DCE may resume 
  10397. transmission of 
  10398.  
  10399. I\ frames. If Timer\ T1 is running, the DCE will wait for the non\(hybusy 
  10400. response with the F bit set to\ 1 or will wait for Timer\ T1 to run out 
  10401. and then either 
  10402.  
  10403. may reinitiate the enquiry process in order to realize a successful P/F bit
  10404.  
  10405. exchange or may resume transmission of I frames beginning with the I\ frame
  10406.  
  10407. identified by the N(R) in the received RR or REJ frame.
  10408.  
  10409. .LP
  10410.  
  10411. 2.4.5.8
  10412.  
  10413. \fIDCE busy condition\fR 
  10414.  
  10415. .LP
  10416.  
  10417. When the DCE enters a busy condition, it will transmit an RNR frame at 
  10418. the earliest opportunity. The RNR frame will be a command frame with the 
  10419. P bit set to\ 1 if an acknowledged transfer of the busy condition indication 
  10420. is 
  10421.  
  10422. required; otherwise the RNR frame may be either a command or a response 
  10423. frame. While in the busy condition, the DCE will accept and process supervisory 
  10424.  
  10425. frames, will accept and process the contents of the N(R) fields of I\ frames,
  10426.  
  10427. and will return an RNR response with the F bit set to\ 1 if it receives a
  10428.  
  10429. supervisory command or I command frame with the P bit set to\ 1. To clear the
  10430.  
  10431. busy condition, the DCE will transmit either an REJ frame or an RR frame, with
  10432.  
  10433. N(R) set to the current receive state variable V(R), depending on whether or
  10434.  
  10435. not it discarded information fields of correctly received I\ frames. The REJ
  10436.  
  10437. frame or the RR frame will be a command frame with the P bit set to\ 1 if an
  10438.  
  10439. acknowledged transfer of the busy\(hyto\(hynon\(hybusy transition is required, 
  10440. otherwise the REJ frame or the RR frame may be either a command or a response 
  10441. frame. 
  10442.  
  10443. .LP
  10444.  
  10445.  
  10446.  
  10447. 2.4.5.9
  10448.  
  10449. \fIWaiting acknowledgement\fR 
  10450.  
  10451. .LP
  10452.  
  10453. The DCE maintains an internal transmission attempt variable which is set 
  10454. to\ 0 when the DCE sends a UA response, when the DCE receives a UA 
  10455.  
  10456. response or an RNR command or response, or when the DCE correctly receives 
  10457. an I\ frame or supervisory frame with the N(R) higher than the last received 
  10458. N(R) (actually acknowledging some outstanding I\ frames). 
  10459.  
  10460. .LP
  10461.  
  10462. If Timer T1 runs out waiting for the acknowledgement from the DTE for an 
  10463. I\ frame transmitted, the DCE will enter the timer recovery condition, 
  10464. add 
  10465.  
  10466. one to its transmission attempt variable and set an internal variable \fIx\fR 
  10467.  
  10468. to
  10469.  
  10470. the current value of its send state variable V(S). The DCE will then restart
  10471.  
  10472. Timer T1, set its send state variable V(S) to the last value of N(R) received 
  10473. from the DTE and retransmit the corresponding I\ frame with the P bit set 
  10474. to\ 1, or transmit an appropriate supervisory command frame (RR, RNR or 
  10475. REJ) with the P\ bit set to\ 1. 
  10476.  
  10477. .LP
  10478.  
  10479.  
  10480.  
  10481. The timer recovery condition is cleared when the DCE receives a valid supervisory 
  10482. frame with the F\ bit\ set to\ 1. 
  10483.  
  10484. .LP
  10485.  
  10486. If, while in the timer recovery condition, the DCE correctly receives a 
  10487. supervisory frame with the F bit set to\ 1 and with the N(R) within the 
  10488. range from its current send state variable V(S) to \fIx\fR 
  10489.  
  10490. included, it will clear the
  10491.  
  10492. timer recovery condition (including stopping Timer\ T1) and set its send 
  10493. state variable V(S) to the value of the received N(R), and may then resume 
  10494. with 
  10495.  
  10496. I\ frame transmission or retransmission, as appropriate.
  10497.  
  10498. .LP
  10499.  
  10500. If, while in the timer recovery condition, the DCE correctly receives an 
  10501. I or supervisory frame with the P/F bit set to\ 0 and with a valid N(R) 
  10502. (see \(sc\ 2.3.4.9), it will not clear the timer recovery condition. The 
  10503. value of the 
  10504.  
  10505. received N(R) may be used to update the send state variable V(S). However, 
  10506. the DCE may decide to keep the last transmitted I\ frame in store (even 
  10507. if it is 
  10508.  
  10509. acknowledged) in order to be able to retransmit it with the P bit set to\ 
  10510. 1 when Timer\ T1 runs out at a later time. 
  10511.  
  10512. .LP
  10513.  
  10514.  
  10515.  
  10516. If the received supervisory frame with the P/F bit set to\ 0 is an REJ 
  10517. frame with a valid N(R), the DCE may either immediately initiate 
  10518.  
  10519. (re)transmission from the value of the send state variable V(S), or it may
  10520.  
  10521. ignore the request for retransmission and wait until the supervisory frame 
  10522. with the F bit set to\ 1 is received before initiating (re)transmission 
  10523. of frames 
  10524.  
  10525. from the value identified in the N(R) field of the supervisory frame with 
  10526. the F\ bit set to\ 1. In the case of immediate retransmission, in order 
  10527. to prevent 
  10528.  
  10529. duplicate retransmissions following the clearance of the timer recovery
  10530.  
  10531. condition, the DCE shall inhibit retransmission of a specific I\ frame [same
  10532.  
  10533. N(R) in the same numbering cycle] if the DCE has retransmitted that I\ 
  10534. frame as the result of a received REJ frame with the P/F bit set to\ 0. 
  10535.  
  10536. .LP
  10537.  
  10538. If, while in the timer recovery condition, the DCE receives a REJ
  10539.  
  10540. command with the P bit set to\ 1, the DCE will respond immediately with an
  10541.  
  10542. appropriate supervisory response with the F bit set to\ 1. The DCE may 
  10543. then use the value of the N(R) in the REJ command to update the send state 
  10544. variable 
  10545.  
  10546. V(S), and may either immediately begin (re)transmission from the value N(R)
  10547.  
  10548. indicated in the REJ frame or ignore the request for retransmission and wait
  10549.  
  10550. until the supervisory frame with the F bit set to\ 1 is received before
  10551.  
  10552. initiating (re)transmission of I\ frames from the value identified in the 
  10553. N(R) field of the supervisory frame with the F\ bit set to\ 1. In the case 
  10554. of 
  10555.  
  10556. immediate retransmission, in order to prevent duplicate retransmissions
  10557.  
  10558. following the clearance of the timer recovery condition, the DCE shall 
  10559. inhibit retransmission of a specific I\ frame [same N(R) in the same numbering 
  10560. cycle] 
  10561.  
  10562. if the DCE has retransmitted that I\ frame as the result of the received REJ
  10563.  
  10564. command with the P\ bit set to\ 1.
  10565.  
  10566. .LP
  10567.  
  10568. If Timer T1 runs out in the timer recovery condition, and no I or
  10569.  
  10570. supervisory frame with the P/F bit set to 0 and with a valid N(R) has been
  10571.  
  10572. received, or no REJ command with the P bit set to\ 1 and with a valid N(R) 
  10573. has been received, the DCE will add one to its transmission attempt variable, 
  10574.  
  10575. restart Timer\ T1, and either retransmit the I frame sent with the P bit set
  10576.  
  10577. to\ 1 or transmit an appropriate supervisory command with the P bit set to\ 1.
  10578.  
  10579. .LP
  10580.  
  10581.  
  10582.  
  10583. If the transmission attempt variable is equal to N2, the DCE will
  10584.  
  10585. initiate a data link resetting procedure as described in \(sc\ 2.4.7.2 
  10586. below, or 
  10587.  
  10588. will transmit a DM response to ask the DTE to initiate a data link set\(hyup
  10589.  
  10590. procedure as described in \(sc\ 2.4.4.1 above and enter the disconnected 
  10591. phase. N2 is a system parameter (see \(sc\ 2.4.8.4 below). 
  10592.  
  10593. .LP
  10594.  
  10595. \fINote\fR 
  10596.  
  10597. \ \(em\ Although the DCE may implement the internal variable \fIx\fR 
  10598.  
  10599. ,
  10600.  
  10601. other mechanisms do exist that achieve the identical function.
  10602.  
  10603. .LP
  10604.  
  10605. 2.4.6
  10606.  
  10607. \fILAPB conditions for \fR 
  10608.  
  10609. \fIdata link resetting or data link\fR 
  10610.  
  10611.  
  10612.  
  10613. \fIre\(hyinitialization\fR 
  10614.  
  10615. \fI(data link set\(hyup)\fR 
  10616.  
  10617. .LP
  10618.  
  10619. 2.4.6.1
  10620.  
  10621. When the DCE receives, during the information transfer phase, a
  10622.  
  10623. frame which is not invalid (see \(sc\ 2.3.5.3) with one of the conditions 
  10624. listed in \(sc\ 2.3.4.9 above, the DCE will request the DTE to initiate 
  10625. a data link resetting procedure by transmitting an FRMR response to the 
  10626. DTE as described in 
  10627.  
  10628. \(sc\ 2.4.7.3.
  10629.  
  10630. .LP
  10631.  
  10632. 2.4.6.2
  10633.  
  10634. When the DCE receives, during the information transfer phase, an FRMR response 
  10635. from the DTE, the DCE will either initiate the data link 
  10636.  
  10637. resetting procedures itself as described in \(sc\ 2.4.7.2 or return a DM 
  10638. response to ask the DTE to initiate the data link set\(hyup (initialization) 
  10639. procedure as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  10640. the DCE will enter 
  10641.  
  10642. the disconnected phase as described in \(sc\ 2.4.4.4.2.
  10643.  
  10644. .LP
  10645.  
  10646. 2.4.6.3
  10647.  
  10648. When the DCE receives, during the information transfer phase, a UA response, 
  10649. or an unsolicited response with the F bit set to\ 1, the DCE may 
  10650.  
  10651. either initiate the data link resetting procedures itself as described in
  10652.  
  10653. \(sc\ 2.4.7.2, or return a DM response to ask the DTE to initiate the data link
  10654.  
  10655. set\(hyup (initialization) procedure as described in \(sc\ 2.4.4.1. After 
  10656. transmitting a DM response, the DCE will enter the disconnected phase as 
  10657. described in 
  10658.  
  10659. \(sc\ 2.4.4.4.2.
  10660.  
  10661. .LP
  10662.  
  10663. 2.4.6.4
  10664.  
  10665. When the DCE receives, during the information transfer phase, a DM response 
  10666. from the DTE, the DCE will either initiate the data link set\(hyup 
  10667.  
  10668. (initialization) procedures itself as described in \(sc\ 2.4.4.1, or return 
  10669. a DM 
  10670.  
  10671. response to ask the DTE to initiate the data link set\(hyup (initialization)
  10672.  
  10673. procedures as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  10674. the DCE will enter the disconnected phase as described in \(sc\ 2.4.4.4.2. 
  10675.  
  10676. .LP
  10677.  
  10678.  
  10679.  
  10680. 2.4.7
  10681.  
  10682. \fILAPB procedure for data link resetting\fR 
  10683.  
  10684. .LP
  10685.  
  10686. 2.4.7.1
  10687.  
  10688. The data link resetting procedure is used to initialize both
  10689.  
  10690. directions of information transfer according to the procedure described 
  10691. below. The data link resetting procedure only applies during the information 
  10692. transfer phase. 
  10693.  
  10694. .LP
  10695.  
  10696. 2.4.7.2
  10697.  
  10698. Either the DTE or the DCE may initiate the data link resetting
  10699.  
  10700. procedure. The data link resetting procedure indicates a clearance of a DCE
  10701.  
  10702. and/or DTE busy condition, if present.
  10703.  
  10704. .LP
  10705.  
  10706. The DTE shall initiate a data link resetting by transmitting an
  10707.  
  10708. SABM/SABME command to the DCE. If, upon correct receipt of the SABM/SABME
  10709.  
  10710. command, the DCE determines that it can continue in the information transfer
  10711.  
  10712. phase, it will return a UA response to the DTE, will reset its send and 
  10713. receive state variables V(S) and V(R) to zero, and will remain in the information 
  10714.  
  10715. transfer phase. If, upon correct receipt of the SABM/SABME command, the DCE
  10716.  
  10717. determines that it cannot remain in the information transfer phase, it will
  10718.  
  10719. return a DM response as a denial to the resetting request and will enter the
  10720.  
  10721. disconnected phase.
  10722.  
  10723. .LP
  10724.  
  10725. The DCE will initiate a data link resetting by transmitting an
  10726.  
  10727. SABM/SABME command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 
  10728. below). Upon reception of a UA response from the DTE, the DCE will reset 
  10729. its send and receive state variables V(S) and V(R) to zero, will stop its 
  10730. Timer\ T1, and will remain in the information transfer phase. Upon reception 
  10731. of a DM response from the DTE as a denial to the data link resetting request, 
  10732. the DCE will stop its Timer\ T1 and will enter the disconnected phase. 
  10733.  
  10734. .LP
  10735.  
  10736. The DCE, having sent an SABM/SABME command, will ignore and discard
  10737.  
  10738. any frames received from the DTE except an SABM/SABME or DISC command, 
  10739. or a UA or DM response. The receipt of an SABM/SABME or DISC command from 
  10740. the DTE will result in a collision situation that is resolved per \(sc\ 
  10741. 2.4.4.5 above. Frames 
  10742.  
  10743. other than the UA or DM response sent in response to a received SABM/SABME 
  10744. or DISC command will be sent only after the data link is reset and if no 
  10745.  
  10746. outstanding SABM/SABME command exists.
  10747.  
  10748. .LP
  10749.  
  10750.  
  10751.  
  10752. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  10753. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  10754.  
  10755. resend the SABM/SABME command and will restart Timer\ T1. After N2 attempts 
  10756. to reset the data link, the DCE will initiate appropriate higher layer 
  10757. recovery 
  10758.  
  10759. action and will enter the disconnected phase. The value of N2 is defined in
  10760.  
  10761. \(sc\ 2.4.8.4 below.
  10762.  
  10763. .LP
  10764.  
  10765. 2.4.7.3
  10766.  
  10767. The DCE may ask the DTE to reset the data link by transmitting an FRMR 
  10768. response (see \(sc\ 2.4.6.1 above). After transmitting an FRMR response, 
  10769.  
  10770. the DCE will enter the frame rejection condition.
  10771.  
  10772. .LP
  10773.  
  10774. The frame rejection condition is cleared when the DCE receives an SABM/SABME 
  10775. command, a DISC command, a FRMR response, or a DM response; or if 
  10776.  
  10777. the DCE transmits an SABM/SABME command, a DISC command, or a DM response.
  10778.  
  10779. Other commands received while in the frame rejection condition will cause 
  10780. the DCE to retransmit the FRMR response with the same information field 
  10781. as 
  10782.  
  10783. originally transmitted.
  10784.  
  10785. .LP
  10786.  
  10787. The DCE may start Timer\ T1 on transmission of the FRMR response. If
  10788.  
  10789. Timer\ T1 runs out before the frame rejection condition is cleared, the 
  10790. DCE may retransmit the FRMR response, and restart T1. After N2 attempts 
  10791. (time outs) to get the DTE to reset the data link, the DCE may reset the 
  10792. data link itself as described in \(sc\ 2.4.7.2 above. The value of N2 is 
  10793. defined in \(sc\ 2.4.8.4 below. 
  10794.  
  10795. .LP
  10796.  
  10797.  
  10798.  
  10799. In the frame rejection condition, I frames and supervisory frames will 
  10800. not be transmitted by the DCE. Also, received I frames and supervisory 
  10801. frames will be discarded by the DCE except for the observance of a P bit 
  10802. set to\ 1. 
  10803.  
  10804. When an additional FRMR response must be transmitted by the DCE as a result 
  10805. of the receipt of a P\ bit set to 1 while Timer\ T1 is running, Timer\ 
  10806. T1 will 
  10807.  
  10808. continue to run. Upon reception of an FRMR response (even during a frame
  10809.  
  10810. rejection condition), the DCE will initiate a resetting procedure by
  10811.  
  10812. transmitting an SABM/SABME command as described in \(sc\ 2.4.7.2 above, or will
  10813.  
  10814. transmit a DM response to ask the DTE to initiate the data link set\(hyup
  10815.  
  10816. procedure as described in \(sc\ 2.4.4.1 and enter the disconnected phase.
  10817.  
  10818. .LP
  10819.  
  10820. 2.4.8
  10821.  
  10822. \fIList of \fR 
  10823.  
  10824. \fILAPB system parameters\fR 
  10825.  
  10826. .LP
  10827.  
  10828. The DCE and DTE system parameters are as follows:
  10829.  
  10830. .LP
  10831.  
  10832.  
  10833.  
  10834. 2.4.8.1
  10835.  
  10836. \fITimer\fR 
  10837.  
  10838. \fIT1\fR 
  10839.  
  10840. .LP
  10841.  
  10842. The value of the DTE Timer T1 system parameter may be different
  10843.  
  10844. than the value of the DCE Timer T1 system parameter. These values shall 
  10845. be made known to both the DTE and the DCE, and agreed to for a period of 
  10846. time by both the DTE and the DCE. 
  10847.  
  10848. .LP
  10849.  
  10850. The period of Timer T1, at the end of which retransmission of a frame may 
  10851. be initiated (see \(sc\ 2.4.4 and \(sc\ 2.4.5 above for the DCE), shall 
  10852. take into account whether T1 is started at the beginning or the end of 
  10853. the transmission of a frame. 
  10854.  
  10855. .LP
  10856.  
  10857. The proper operation of the procedure requires that the transmitter's (DCE 
  10858. or DTE) Timer\ T1 be greater than the maximum time between transmission 
  10859. of a frame (SABM/SABME, DISC, I\ or supervisory command, or DM or FRMR 
  10860. response) 
  10861.  
  10862. and the reception of the corresponding frame returned as an answer to that
  10863.  
  10864. frame (UA, DM or acknowledging frame). Therefore, the receiver (DCE or DTE)
  10865.  
  10866. should not delay the response or acknowledging frame returned to one of the
  10867.  
  10868. above frames by more than a value\ T2, where T2 is a system parameter (see
  10869.  
  10870. \(sc\ 2.4.8.2).
  10871.  
  10872. .LP
  10873.  
  10874.  
  10875.  
  10876. The DCE will not delay the response or acknowledging frame returned to 
  10877. one of the above DTE frames by more than a period\ T2. 
  10878.  
  10879. .LP
  10880.  
  10881. 2.4.8.2
  10882.  
  10883. \fIParameter T2\fR 
  10884.  
  10885. .LP
  10886.  
  10887. The value of the DTE parameter T2 may be different than the value of the 
  10888. DCE parameter T2. These values shall be made known to both the DTE and 
  10889. the DCE, and agreed to for a period of time by both the DTE and the DCE. 
  10890.  
  10891. .LP
  10892.  
  10893.  
  10894.  
  10895. The period of parameter T2 shall indicate the amount of time
  10896.  
  10897. available at the DCE or DTE before the acknowledging frame must be initiated 
  10898. in order to ensure its receipt by the DTE or DCE, respectively, prior to 
  10899. Timer\ T1 running out at the DTE or DCE (parameter\ T2\ <\ Timer\ T1). 
  10900.  
  10901. .LP
  10902.  
  10903. \fINote\fR 
  10904.  
  10905. \ \(em\ The period of parameter T2 shall take into account the
  10906.  
  10907. following timing factors: the transmission time of the acknowledging frame, 
  10908. the propagation time over the access data link, the stated processing times 
  10909. at the DCE and the DTE, and the time to complete the transmission of the 
  10910. frame(s) in the DCE or DTE transmit queue that are neither displaceable 
  10911. or modifiable in an orderly manner. 
  10912.  
  10913. .LP
  10914.  
  10915.  
  10916.  
  10917. Given a value for Timer T1 for the DTE or DCE, the value of parameter T2 
  10918. at the DCE or DTE, respectively, must be no larger than T1 minus\ 2 times 
  10919. the propagation time over the access data link, minus the frame processing 
  10920. time at the DCE, minus the frame processing time at the DTE, and minus 
  10921. the transmission time of the acknowledging frame by the DCE or DTE, respectively. 
  10922.  
  10923. .LP
  10924.  
  10925.  
  10926.  
  10927. 2.4.8.3
  10928.  
  10929. \fITimer T3\fR 
  10930.  
  10931. .LP
  10932.  
  10933. The DCE shall support a Timer T3 system parameter, the value of
  10934.  
  10935. which shall be made known to the DTE.
  10936.  
  10937. .LP
  10938.  
  10939. The period of Timer T3, at the end of which an indication of an
  10940.  
  10941. observed excessively long idle channel state condition is passed to the 
  10942. Packet Layer, shall be sufficiently greater than the period of the DCE 
  10943. Timer T1 
  10944.  
  10945. (i.e.\ T3\ >\ T1) so that the expiration of T3 provides the desired level of
  10946.  
  10947. assurance that the data link channel is in a non\(hyactive, non\(hyoperational 
  10948. state, and is in need of data link set\(hyup before normal data link operation 
  10949. can 
  10950.  
  10951. resume.
  10952.  
  10953. .LP
  10954.  
  10955. 2.4.8.4
  10956.  
  10957. \fIMaximum number of attempts\fR 
  10958.  
  10959. \fIto complete a\fR 
  10960.  
  10961.  
  10962.  
  10963. \fItransmission N2\fR 
  10964.  
  10965. .LP
  10966.  
  10967.  
  10968.  
  10969. The value of the DTE N2 system parameter may be different than the value 
  10970. of the DCE N2 system parameter. These values shall be made known to both 
  10971. the DTE and the DCE, and agreed to for a period of time by both the DTE 
  10972. and the DCE. 
  10973.  
  10974. .LP
  10975.  
  10976. The value of N2 shall indicate the maximum number of attempts made by the 
  10977. DCE or DTE to complete the successful transmission of a frame to the DTE 
  10978. or DCE, respectively. 
  10979.  
  10980. .LP
  10981.  
  10982. 2.4.8.5
  10983.  
  10984. \fIMaximum number of bits in an I frame N1\fR 
  10985.  
  10986. .LP
  10987.  
  10988. The value of the DTE N1 system parameter may be different than the value 
  10989. of the DCE N1 system parameter. These values shall be made known to both 
  10990. the DTE and the DCE. 
  10991.  
  10992. .LP
  10993.  
  10994. The values of N1 shall indicate the maximum number of bits in an
  10995.  
  10996. I\ frame (excluding flags and 0\ bits inserted for transparency) that the 
  10997. DCE or DTE is willing to accept from the DTE or DCE, respectively. 
  10998.  
  10999. .LP
  11000.  
  11001. In order to allow for universal operation, a DTE should support a
  11002.  
  11003. value of DTE N1 which is not less than 1080\ bits (135\ octets). DTEs should 
  11004. be aware that the network may transmit longer packets (see \(sc\ 5.2), 
  11005. that may result in a data link layer problem. 
  11006.  
  11007. .LP
  11008.  
  11009.  
  11010.  
  11011. All networks shall offer to a DTE which requires it, a value of DCE N1 
  11012. which is greater than or equal to 2072\ bits (259\ octets) plus the length 
  11013. of the address, control and FCS fields at the DTE/DCE interface, and greater 
  11014. than or equal to the maximum length of the data packets which may cross 
  11015. the DTE/DCE 
  11016.  
  11017. interface plus the length of the address, control and FCS fields at the 
  11018. DTE/DCE interface. 
  11019.  
  11020. .LP
  11021.  
  11022. Appendix II provides a description of how the values stated above are  derived.
  11023.  
  11024. .LP
  11025.  
  11026. 2.4.8.6
  11027.  
  11028. \fIMaximum number of \fR 
  11029.  
  11030. \fIoutstanding I frames k\fR 
  11031.  
  11032. .LP
  11033.  
  11034. The value of the DTE k system parameter shall be the same as the
  11035.  
  11036. value of the DCE k system parameter. This value shall be agreed to for a
  11037.  
  11038. period of time by both the DTE and the DCE.
  11039.  
  11040. .LP
  11041.  
  11042. The value of k shall indicate the maximum number of sequentially
  11043.  
  11044. numbered I\ frames that the DTE or DCE may have outstanding
  11045.  
  11046. (i.e.\ unacknowledged) at any given time. The value of k shall never exceed
  11047.  
  11048. seven for modulo\ 8 operation, or one hundred and twenty\(hyseven for modulo\ 
  11049. 128 
  11050.  
  11051. operation. All networks (DCEs) shall support a value of seven. Other values 
  11052. of k (less than and greater than seven) may also be supported by networks 
  11053.  
  11054. (DCEs).
  11055.  
  11056. .LP
  11057.  
  11058. .line
  11059.  
  11060. \fBMONTAGE : \(sc 2.5 de cette Recommandation sur le reste de cette page\fR 
  11061.  
  11062. .parag
  11063. .ce
  11064.  
  11065. .ce
  11066. .line
  11067. .ad r
  11068. \fBTable 1/X.24 [T1.24], p.\fR 
  11069. .sp 1P
  11070. .RT
  11071. .ad b
  11072. .RT
  11073. .sp 1P
  11074. .LP
  11075. 3.1
  11076.     \fICircuit\ G\ \(em\ Signal ground or common return\fR 
  11077. .sp 9p
  11078. .RT
  11079. .PP
  11080. This conductor establishes the signal common reference potential
  11081. for unbalanced double\(hycurrent interchange circuits with electrical
  11082. characteristics according to Recommendation\ V.28. In the case of
  11083. interchange circuits according to Recommendations\ V.10 and\ V.11, it
  11084. interconnects the zero volt reference points of a generator and a receiver 
  11085. to reduce environmental signal interference, if required. 
  11086. .PP
  11087. Within the DCE, this conductor shall be brought to one point,
  11088. protective ground or earth, by means of a metallic strap within the equipment. 
  11089. This metallic strap can be connected or removed at installation, as may 
  11090. be 
  11091. required, to minimize the introduction of noise into electronic circuitry 
  11092. or to meet applicable regulations. 
  11093. .PP
  11094. \fINote\fR \ \(em\ Where a shielded interconnecting cable is used at the
  11095. interface, the shield may be connected either to circuit\ G, or to protective
  11096. ground in accordance with national regulations. Protective ground may be
  11097. further connected to external grounds as required by applicable electrical
  11098. safety regulations.
  11099. .PP
  11100. For unbalanced interchange circuits with electrical characteristics in 
  11101. accordance with Recommendation\ V.10, two common\(hyreturn conductors are 
  11102. required, one for each direction of signalling, each conductor being connected 
  11103. to ground only on the generator side of the interface. Where used, these 
  11104. shall be 
  11105. designated circuits\ Ga and\ Gb, and they are defined as follows:
  11106. .RT
  11107. .LP
  11108.     \fICircuit\ Ga\ \(em\ DTE common return\fR 
  11109. .LP
  11110.     This conductor is connected to the DTE circuit common and is used
  11111. as the reference potential for the unbalanced\ X.26 type interchange circuit
  11112. receivers within the DCE.
  11113. .LP
  11114.     \fICircuit\ Gb\ \(em\ DCE common return\fR 
  11115. .LP
  11116.     This conductor is connected to the DCE circuit common and is used
  11117. as the reference potential for the unbalanced\ X.26 type interchange circuit
  11118. receivers within the DTE.
  11119. .bp
  11120. .sp 1P
  11121. .LP
  11122. 3.2
  11123.     \fICircuit\ T\ \(em\ Transmit\fR 
  11124. .sp 9p
  11125. .RT
  11126. .LP
  11127.     \fIDirection:\fR To DCE
  11128. .PP
  11129. The binary signals originated by the DTE to be transmitted during the data 
  11130. transfer phase via the data circuit to one or more remote DTEs are 
  11131. transferred on this circuit to the DCE.
  11132. .PP
  11133. This circuit also transfers the call control signals originated by the 
  11134. DTE, to be transmitted to the DCE in the call establishment and other call 
  11135. control phases as specified by the relevant Recommendations for the procedural 
  11136. characteristic of the interface. 
  11137. .PP
  11138. The DCE monitors this circuit for detection of electrical circuit
  11139. fault conditions, according to the specifications of the electrical
  11140. characteristics of the interface. A circuit fault is to be interpreted 
  11141. by the DCE as defined in the Recommendation for the procedural characteristics 
  11142. of 
  11143. the interface.
  11144. .RT
  11145. .sp 1P
  11146. .LP
  11147. 3.3
  11148.     \fICircuit\ R\ \(em\ Receive\fR 
  11149. .sp 9p
  11150. .RT
  11151. .LP
  11152.     \fIDirection:\fR \ From DCE
  11153. .PP
  11154. The binary signals sent by the DCE as received during the data
  11155. transfer phase from a remote DTE, are transferred on this circuit to the DTE.
  11156. .PP
  11157. This circuit also transfers the call control signals sent by the DCE as 
  11158. received during the call establishment and other call control phases as 
  11159. specified by the relevant Recommendations for the procedural characteristics 
  11160. of the interface. 
  11161. .PP
  11162. The DTE monitors this circuit for detection of electrical circuit
  11163. fault conditions, according to the specifications of the electrical
  11164. characteristics of the interface. A circuit fault is to be interpreted 
  11165. by the DTE as defined in the Recommendation for the procedural characteristics 
  11166. of 
  11167. the interface.
  11168. .RT
  11169. .sp 1P
  11170. .LP
  11171. 3.4
  11172.     \fICircuit\ C\ \(em\ Control\fR 
  11173. .sp 9p
  11174. .RT
  11175. .LP
  11176.     \fIDirection:\fR \ To DCE
  11177. .PP
  11178. Signals on this circuit control the DCE for a particular signalling process.
  11179. .PP
  11180. Representation of a control signal requires additional coding of
  11181. circuit\ T\(hy\fITransmit\fR \|as specified in the relevant Recommendation 
  11182. for the 
  11183. procedural characteristics of the interface. During the data phase, this
  11184. circuit shall remain ON. During the call control phases, the condition 
  11185. of this circuit shall be as specified in the relevant Recommendation for 
  11186. the procedural characteristics of the interface. 
  11187. .PP
  11188. \fINote\fR \ \(em\ After appropriate selection of special user facilities 
  11189. (not yet defined), it might be required to change the ON condition after 
  11190. entering 
  11191. .PP
  11192. the data phase in accordance with the regulations for the use of these
  11193. facilities. This subject is for further study.
  11194. .PP
  11195. The DCE monitors this circuit for detection of electrical circuit
  11196. fault conditions, according to the specifications of the electrical
  11197. characteristics of the interface. A circuit fault is to be interpreted 
  11198. by the DCE as defined in the Recommendation for the procedural characteristics 
  11199. of 
  11200. the interface.
  11201. .RT
  11202. .sp 1P
  11203. .LP
  11204. 3.5
  11205.     \fICircuit\ I\ \(em\ Indication\fR 
  11206. .sp 9p
  11207. .RT
  11208. .LP
  11209.     \fIDirection:\fR \ From DCE
  11210. .PP
  11211. Signals on this circuit indicate to the DTE the state of the call control 
  11212. process. 
  11213. .PP
  11214. Representation of a control signal requires additional coding of
  11215. circuit\ R\(hy\fIReceive\fR , as specified in the relevant Recommendation 
  11216. for the 
  11217. procedural characteristics of the interface. The ON condition of this circuit 
  11218. signifies that signals on circuit\ R contain information from the distant 
  11219. DTE. The OFF condition signifies a control signalling condition which is 
  11220. defined by the bit sequence on circuit\ R as specified by the procedural 
  11221. characteristics 
  11222. of the interface.
  11223. .PP
  11224. The DTE monitors this circuit for detection of electrical circuit
  11225. fault conditions, according to the specifications of the electrical
  11226. characteristics of the interface. A circuit fault is to be interpreted 
  11227. by the DTE as defined in the Recommendation for the procedural characteristics 
  11228. of 
  11229. the interface.
  11230. .PP
  11231. \fINote\fR \ \(em\ For use with special user facilities (not yet defined) it
  11232. might be required to use the OFF condition after entering the data transfer
  11233. phase in accordance with the regulations for the use of these facilities.
  11234. This subject is for further study.
  11235. .bp
  11236. .RT
  11237. .sp 1P
  11238. .LP
  11239. 3.6
  11240.     \fICircuit\ S\ \(em\ \fR \fISignal element timing\fR 
  11241. .sp 9p
  11242. .RT
  11243. .LP
  11244.     \fIDirection:\fR \ From DCE
  11245. .PP
  11246. Signals on this circuit provide the DTE with signal element timing information. 
  11247. The condition of this circuit shall be ON and OFF for nominally 
  11248. equal periods of time. However, for burst isochronous operations, longer
  11249. periods of OFF condition may be permitted equal to an integer odd number of
  11250. the nominal period of the ON condition as specified by the relevant procedural 
  11251. characteristics of the interface. 
  11252. .PP
  11253. The DTE shall present a binary signal on circuit\ T\(hy\fITransmit\fR \|and 
  11254. a condition on circuit\ C\(hy\fIControl\fR , in which the transitions nominally 
  11255. occur at the time of the transitions from OFF to ON condition of this circuit. 
  11256. .PP
  11257. The DCE presents a binary signal on circuit\ R\(hy\fIReceive\fR \|and a
  11258. condition on circuit\ I\(hy\fIIndication\fR \|in which the transitions 
  11259. nominally occur at the time of the transitions from OFF to ON condition 
  11260. of this circuit. 
  11261. .PP
  11262. The transition from ON to OFF condition shall nominally indicate the centre 
  11263. of each signal element on circuit\ R. 
  11264. .PP
  11265. The DCE shall transfer signal element timing information on this
  11266. circuit across the interface at all times that the timing source is capable 
  11267. of generating this information. 
  11268. .RT
  11269. .sp 1P
  11270. .LP
  11271. 3.7
  11272.     \fICircuit\ B\ \(em\ \fR \fIByte timing\fR (see Note 2)
  11273. .sp 9p
  11274. .RT
  11275. .LP
  11276.     \fIDirection:\fR \ From DCE
  11277. .PP
  11278. Signals on this circuit provide the DTE with 8\(hybit byte timing
  11279. information. The condition of this circuit shall be OFF for nominally the
  11280. period of the ON condition of circuit\ S\(hy\fISignal element timing\fR 
  11281. which indicates the last bit of an 8\(hybit byte and shall be ON at all 
  11282. other times within the 
  11283. period of the 8\(hybit byte.
  11284. .PP
  11285. During the call control phases, the call control characters and steady 
  11286. state conditions used for all information transfers between the DCE and 
  11287. the 
  11288. DTE, in either direction, shall be correctly aligned to the signals of
  11289. circuit\ B.
  11290. .PP
  11291. The DTE shall present the beginning of the first bit of each call
  11292. control character on circuit\ T\(hy\fITransmit\fR nominally at the time of the
  11293. OFF to ON transition of circuit\ S which follows the OFF to ON transition of
  11294. circuit\ B.
  11295. .PP
  11296. A change of condition of circuit\ C\(hy\fIControl\fR \|may occur at any
  11297. OFF to ON transition of circuit\ S, but it will be sampled in the DCE at the
  11298. time of the OFF to ON transition of circuit\ B, i.e., for evaluation of the
  11299. following call control character on circuit\ T.
  11300. .PP
  11301. The centre of the last bit of each call control character will be
  11302. presented by the DCE on circuit\ R\(hy\fIReceive\fR nominally at the time 
  11303. of the 
  11304. OFF to ON transition of circuit\ B.
  11305. .PP
  11306. A change of condition of circuit\ I\(hy\fIIndication\fR \|will occur nominally 
  11307. at the OFF to ON transition of circuit\ S which follows the OFF to ON 
  11308. transition of circuit\ B.
  11309. .PP
  11310. The DCE shall transfer byte timing information on this circuit across the 
  11311. interface at all times that the timing source is capable of generating 
  11312. this information. 
  11313. .PP
  11314. \fINote\ 1\fR \ \(em\ During the data transfer phase, DTEs communicating by
  11315. means of an 8\(hybit code may utilize the byte timing information for mutual
  11316. character alignment.
  11317. .RT
  11318. .LP
  11319. It is a prerequisite for the provision of this feature that
  11320. character alignment is preserved after the call has entered the data transfer 
  11321. phase and that the alignment obtained at one interface is synchronized 
  11322. to the alignment at the other interface. (This is only possible on some 
  11323. connections.) 
  11324. .LP
  11325. Furthermore, where this feature is available, a change of condition
  11326. on circuit\ C as defined above may result in an equivalent change in the
  11327. relative alignment on circuit\ I at the distant interface.
  11328. .PP
  11329. \fINote\ 2\fR \ \(em\ In some Recommendations for the procedural
  11330. characteristics of the interface (e.g.,\ X.21), the use and termination 
  11331. of this circuit by the DTE is not mandatory even when implemented in the 
  11332. DCE. 
  11333. .bp
  11334. .LP
  11335. .sp 1P
  11336. .LP
  11337. 3.8
  11338.     \fICircuit\ F\ \(em\ Frame start identification\fR 
  11339. .sp 9p
  11340. .RT
  11341. .LP
  11342.     \fIDirection:\fR \ From DCE
  11343. .PP
  11344. Signals on this circuit continuously provide the DTE with a
  11345. multiplex frame start indication when connected to a multiplexed DTE/DCE
  11346. interface.
  11347. .PP
  11348. The condition on this circuit shall be OFF for the nominal period of one 
  11349. bit, indicating the last bit of the multiplex frame. At other times the 
  11350. circuit shall remain\ ON.
  11351. .PP
  11352. The first data bit on subscriber channel 1 shall be transmitted or
  11353. received beginning nominally at the OFF to ON transition of circuit\ F.
  11354. .RT
  11355. .sp 1P
  11356. .LP
  11357. 3.9
  11358.     \fICircuit\ X\ \(em\ DTE transmit signal element timing\fR (see Note)
  11359. .sp 9p
  11360. .RT
  11361. .LP
  11362.     \fIDirection:\fR \ To DCE
  11363. .PP
  11364. Signals on this circuit provide signal element timing information for the 
  11365. transmit direction in cases where circuit\ S only provides signal 
  11366. element timing for the receive direction. The condition of this circuit 
  11367. shall be ON and OFF for nominally equal periods of time. However, for burst 
  11368. isochronous operations, longer periods of OFF condition may be permitted  
  11369. .PP
  11370. equal to an integer odd number of the nominal period of the ON condition as
  11371. specified by the relevant procedural characteristics of the interface.
  11372. .PP
  11373. The DTE shall present a binary signal on the circuit T\(hy\fITransmit\fR 
  11374. \|and a condition on circuit\ C\(hy\fIControl\fR , in which the transitions 
  11375. nominally occur at the time of the transitions from OFF to ON condition 
  11376. of this circuit. 
  11377. .PP
  11378. The transition from ON to OFF condition shall nominally indicate the centre 
  11379. of each signal element on circuit\ T. 
  11380. .PP
  11381. \fINote\fR \ \(em\ The use and termination of this circuit by the DCE is a
  11382. national matter.
  11383. \v'6p'
  11384. .RT
  11385. .LP
  11386. .sp 2P
  11387. .LP
  11388. \fBRecommendation X.25\fR 
  11389. .RT
  11390. .sp 2P
  11391. .ce 1000
  11392. \fBINTERFACE\ BETWEEN\ DATA\ TERMINAL\ EQUIPMENT\ (DTE)\ AND\ DATA\fR 
  11393. .EF '%    Fascicle\ VIII.2\ \(em\ Rec.\ X.25''
  11394. .OF '''Fascicle\ VIII.2\ \(em\ Rec.\ X.25    %'
  11395. .ce 0
  11396. .ce 1000
  11397. \fBCIRCUIT\(hyTERMINATING\ EQUIPMENT\ (DCE)\ FOR\ TERMINALS\ OPERATING\fR 
  11398. .ce 0
  11399. .ce 1000
  11400. \fBIN\ THE\ PACKET\ MODE\ AND\ CONNECTED\ TO\ PUBLIC\fR 
  11401. .ce 0
  11402. .sp 1P
  11403. .ce 1000
  11404. \fBDATA\ NETWORKS\ BY\ DEDICATED\ CIRCUIT\fR 
  11405. .ce 0
  11406. .sp 1P
  11407. .ce 1000
  11408. \fI(Geneva, 1976; amended at Geneva, 1980\fR ,
  11409. .sp 9p
  11410. .RT
  11411. .ce 0
  11412. .sp 1P
  11413. .ce 1000
  11414. \fIMalaga\(hyTorremolinos, 1984 and Melbourne, 1988)\fR 
  11415. .ce 0
  11416. .sp 1P
  11417. .PP
  11418. The establishment in various countries of public data networks providing 
  11419. packet switched data transmission services creates a need to produce standards 
  11420. to facilitate international interworking. 
  11421. .sp 1P
  11422. .RT
  11423. .sp 2P
  11424. .LP
  11425.     The\ CCITT,
  11426. .sp 1P
  11427. .RT
  11428. .sp 1P
  11429. .LP
  11430. \fIconsidering\fR 
  11431. .sp 9p
  11432. .RT
  11433. .PP
  11434. (a)
  11435. that Recommendation X.1 includes specific user classes of service for data 
  11436. terminal equipments operating in the packet mode, 
  11437. Recommendation\ X.2 defines user facilities, Recommendation\ X.10 defines
  11438. categories of access, Recommendations\ X.21 and X.21\|\fIbis\fR define DTE/DCE
  11439. physical layer interface characteristics, Recommendation\ X.92 defines the
  11440. hypothetical reference connections for packet switched data transmission
  11441. service and Recommendation\ X.96 defines \fIcall progress\fR signals;
  11442. .PP
  11443. (b)
  11444. that data terminal equipments operating in the packet
  11445. mode will send and receive network control information in the form of packets;
  11446. .PP
  11447. (c)
  11448. that certain data terminal equipments operating in the packet mode will 
  11449. use a 
  11450. packet interleaved synchronous data circuit
  11451. ;
  11452. .bp
  11453. .PP
  11454. (d)
  11455. the desirability of being able to use a single data
  11456. circuit to a Data Switching Exchange\ (DSE) for all user facilities;
  11457. .PP
  11458. (e)
  11459. that Recommendation X.2 specifies which of the various data transmission 
  11460. services and optional user facilities described in the 
  11461. present Recommendation are \*Qessential\*U and have thus to be made available
  11462. internationally, and which are not;
  11463. .PP
  11464. (f
  11465. the need for defining an international
  11466. Recommendation for the exchange between DTE and DCE of control information 
  11467. for the use of packet switched data transmission services; 
  11468. .PP
  11469. (g)
  11470. that this definition is made in Recommendation X.32 with regard to the 
  11471. access through a public switched telephone network, an integrated services 
  11472. digital network (ISDN), or a circuit switched public data network; 
  11473. .PP
  11474. (h)
  11475. that Recommendation X.31 defines the support of
  11476. packet\(hymode
  11477. terminal equipment by an integrated services digital network (ISDN);
  11478. .PP
  11479. (i)
  11480. that, when this Recommendation is used to support the
  11481. Network Service defined in Recommendation\ X.213, the physical, data link and
  11482. packet
  11483. layers correspond to the Physical, Data link and Network Layers respectively, 
  11484. as defined in Recommendation\ X.200; 
  11485. .PP
  11486. (j)
  11487. that this Recommendation includes all the features
  11488. necessary to support the services included in Recommendation\ X.213 as 
  11489. well as other features; that Recommendation\ X.223 defines the use of X.25 
  11490. packet layer protocol to provide the OSI connection mode Network service; 
  11491. .PP
  11492. (k)
  11493. that the necessary elements for an interface
  11494. Recommendation should be defined independently as:
  11495. .LP
  11496.     \fIPhysical layer\fR \ \(em\ the mechanical, electrical, functional and
  11497. procedural characteristics to activate, maintain and deactivate
  11498. the physical link between the DTE and the DCE;
  11499. .LP
  11500.     \fIData link layer\fR \ \(em\ the link access procedure for data interchange
  11501. across the link between the DTE and the DCE;
  11502. .LP
  11503.     \fIPacket layer\fR \ \(em\ the packet format and control procedures for the
  11504. exchange of packets containing control information and user
  11505. data between the DTE and the DCE;
  11506. .sp 1P
  11507. .LP
  11508. \fIunanimously declares\fR 
  11509. .sp 9p
  11510. .RT
  11511. .PP
  11512. that for public data networks accessed via dedicated circuits by data terminal 
  11513. equipments operating in the packet mode: 
  11514. .PP
  11515. (1)
  11516. the mechanical, electrical, functional and procedural
  11517. characteristics to activate, maintain and deactivate the physical link 
  11518. between the DTE and the DCE should be as specified in \(sc\ 1 below, \fIDTE/DCE 
  11519. interface\fR \fIcharacteristics\fR ; 
  11520. .PP
  11521. (2)
  11522. the link access procedure for data interchange across
  11523. the link between the DTE and the DCE should be as specified in \(sc\ 2 below,
  11524. \fILink access procedure across the DTE/DCE interface\fR ;
  11525. .PP
  11526. (3)
  11527. the packet layer procedures for the exchange of control information and 
  11528. user data at the DTE/DCE interface should be as specified in 
  11529. \(sc\ 3 below, \fIDescription of the packet layer DTE/DCE interface\fR ;
  11530. .PP
  11531. (4)
  11532. the procedures for virtual call and permanent virtual
  11533. circuit services should be as specified in \(sc\ 4 below, \fIProcedures 
  11534. for virtual\fR \fIcircuit services\fR ; 
  11535. .PP
  11536. (5)
  11537. the format for packets exchanged between the DTE and the DCE should be 
  11538. as specified in \(sc\ 5 below, \fIPacket formats\fR ; 
  11539. .PP
  11540. (6)
  11541. the procedures for optional user facilities should be as specified in \(sc\ 
  11542. 6 below, \fIProcedures for optional user facilities\fR ; 
  11543. .PP
  11544. (7)
  11545. the formats for optional user facilities should be as
  11546. specified in \(sc\ 7 below, \fIFormats for facility fields and registration 
  11547. fields\fR . 
  11548. .PP
  11549. \fINote\fR \ \(em\ This Recommendation fully specifies the behaviour of 
  11550. the DCE. In addition, a minimum set of requirements is specified for the 
  11551. DTE. 
  11552. Additional guidance for the design of DTEs is available in ISO standards
  11553. ISO\ 7776 (data link layer) and ISO\ 8208 (packet layer). It is not required 
  11554. by this Recommendation that these ISO standards be used. If using these 
  11555. ISO 
  11556. standards, note must be taken that their scope is expanded beyond that 
  11557. of just interfacing with packet switched public data networks. 
  11558. .PP
  11559. It should also be noted that this Recommendation uses the term DTE to refer 
  11560. to the equipment to which the DCE interfaces. In ISO\ 8208, distinction 
  11561. is made between a DTE and a packet switched private data network, which 
  11562. are both considered as DTEs in this Recommendation. 
  11563. .bp
  11564. .RT
  11565. .sp 1P
  11566. .ce 1000
  11567. CONTENTS
  11568. .ce 0
  11569. .sp 1P
  11570. .sp 2P
  11571. .LP
  11572. 1
  11573.     \fIDTE/DCE interface characteristics (physical layer)\fR \v'3p'
  11574. .sp 1P
  11575. .RT
  11576. .LP
  11577.     1.1
  11578.     X.21 interface
  11579. .LP
  11580.     1.2
  11581.     X.21\|\fIbis\fR interface
  11582. .LP
  11583.     1.3
  11584.     V\(hyseries interface
  11585. .LP
  11586.     1.4
  11587.     X.31 interface
  11588. .sp 1P
  11589. .LP
  11590. 2
  11591.     \fILink access procedures across the DTE/DCE interface\fR \v'3p'
  11592. .sp 9p
  11593. .RT
  11594. .LP
  11595.     2.1
  11596.     Scope and field of application
  11597. .LP
  11598.     2.2
  11599.     Frame structure
  11600. .LP
  11601.     2.3
  11602.     LAPB elements of procedures
  11603. .LP
  11604.     2.4
  11605.     Description of the LAPB procedure
  11606. .LP
  11607.     2.5
  11608.     Multilink procedure (MLP)
  11609. .LP
  11610.     2.6
  11611.     LAP elements of procedure
  11612. .LP
  11613.     2.7
  11614.     Description of the LAP procedure
  11615. .sp 1P
  11616. .LP
  11617. 3
  11618.     \fIDescription of the packet layer DTE/DCE interface\fR \v'3p'
  11619. .sp 9p
  11620. .RT
  11621. .LP
  11622.     3.1
  11623.     Logical channels
  11624. .LP
  11625.     3.2
  11626.     Basic structure of packets
  11627. .LP
  11628.     3.3
  11629.     Procedure for restart
  11630. .LP
  11631.     3.4
  11632.     Error handling
  11633. .sp 1P
  11634. .LP
  11635. 4
  11636.     \fIProcedures for virtual circuit services\fR \v'3p'
  11637. .sp 9p
  11638. .RT
  11639. .LP
  11640.     4.1
  11641.     Procedures for virtual call service
  11642. .LP
  11643.     4.2
  11644.     Procedures for permanent virtual circuit service
  11645. .LP
  11646.     4.3
  11647.     Procedures for data and interrupt transfer
  11648. .LP
  11649.     4.4
  11650.     Procedures for flow control
  11651. .LP
  11652.     4.5
  11653.     Effects of clear, reset and restart procedures
  11654. on the transfer of packets
  11655. .LP
  11656.     4.6
  11657.     Effects of the physical and the data link layer on the
  11658. packet layer
  11659. .sp 1P
  11660. .LP
  11661. 5
  11662.     \fIPacket formats\fR \v'3p'
  11663. .sp 9p
  11664. .RT
  11665. .LP
  11666.     5.1
  11667.     General
  11668. .LP
  11669.     5.2
  11670.     Call set\(hyup and clearing packets
  11671. .LP
  11672.     5.3
  11673.     Data and interrupt packets
  11674. .LP
  11675.     5.4
  11676.     Flow control and reset packets
  11677. .LP
  11678.     5.5
  11679.     Restart packets
  11680. .LP
  11681.     5.6
  11682.     Diagnostic packet
  11683. .LP
  11684.     5.7
  11685.     Packets required for optional user facilities
  11686. .sp 1P
  11687. .LP
  11688. 6
  11689.     \fIProcedures for optional user facilities (packet layer)\fR \v'3p'
  11690. .sp 9p
  11691. .RT
  11692. .LP
  11693.     6.1
  11694.     On\(hyline facility registration
  11695. .LP
  11696.     6.2
  11697.     Extended packet sequence numbering
  11698. .LP
  11699.     6.3
  11700.     D bit modification
  11701. .LP
  11702.     6.4
  11703.     Packet retransmission
  11704. .LP
  11705.     6.5
  11706.     Incoming calls barred
  11707. .LP
  11708.     6.6
  11709.     Outgoing calls barred
  11710. .bp
  11711. .LP
  11712.     6.7
  11713.     One\(hyway logical channel outgoing
  11714. .LP
  11715.     6.8
  11716.     One\(hyway logical channel incoming
  11717. .LP
  11718.     6.9
  11719.     Non\(hystandard default packet sizes
  11720. .LP
  11721.     6.10
  11722.     Non\(hystandard default window sizes
  11723. .LP
  11724.     6.11
  11725.     Default throughput classes assignment
  11726. .LP
  11727.     6.12
  11728.     Flow control parameter negotiation
  11729. .LP
  11730.     6.13
  11731.     Throughput class negotiation
  11732. .LP
  11733.     6.14
  11734.     Closed user group related facilities
  11735. .LP
  11736.     6.15
  11737.     Bilateral closed user group related facilities
  11738. .LP
  11739.     6.16
  11740.     Fast select
  11741. .LP
  11742.     6.17
  11743.     Fast select acceptance
  11744. .LP
  11745.     6.18
  11746.     Reverse charging
  11747. .LP
  11748.     6.19
  11749.     Reverse charging acceptance
  11750. .LP
  11751.     6.20
  11752.     Local charging prevention
  11753. .LP
  11754.     6.21
  11755.     Network user identification (NUI) related facilities
  11756. .LP
  11757.     6.22
  11758.     Charging information
  11759. .LP
  11760.     6.23
  11761.     RPOA related facilities
  11762. .LP
  11763.     6.24
  11764.     Hunt group
  11765. .LP
  11766.     6.25
  11767.     Call redirection and call deflection related facilities
  11768. .LP
  11769.     6.26
  11770.     Called line address modified notification
  11771. .LP
  11772.     6.27
  11773.     Transit delay selection and indication
  11774. .LP
  11775.     6.28
  11776.     TOA/NEI address subscription
  11777. .sp 1P
  11778. .LP
  11779. 7
  11780.     \fIFormats for facility fields and registration fields\fR \v'3p'
  11781. .sp 9p
  11782. .RT
  11783. .LP
  11784.     7.1
  11785.     General
  11786. .LP
  11787.     7.2
  11788.     Coding of facility field in call set\(hyup
  11789. and clearing packets
  11790. .LP
  11791.     7.3
  11792.     Coding of the registration field of
  11793. registration packets
  11794. .sp 1P
  11795. .LP
  11796. \fIAnnex\ A\fR     \(em
  11797.     Range of logical channels used for virtual calls
  11798. and permanent virtual circuits
  11799. .sp 9p
  11800. .RT
  11801. .LP
  11802. \fIAnnex\ B\fR     \(em
  11803.     Packet layer DTE/DCE interface state diagrams
  11804. .LP
  11805. \fIAnnex\ C\fR     \(em
  11806.     Actions taken by the DCE on receipt of packets
  11807. in a given state of the packet layer DTE/DCE interface as
  11808. perceived by the DCE
  11809. .LP
  11810. \fIAnnex\ D\fR     \(em
  11811.     Packet layer DCE time\(hyouts and DTE time\(hylimits
  11812. .LP
  11813. \fIAnnex\ E\fR     \(em
  11814.     Coding of X.25 network generated
  11815. diagnostic fields in clear, reset and restart indication,
  11816. registration confirmation, and diagnostic packets
  11817. .LP
  11818. \fIAnnex\ F\fR     \(em
  11819.     Applicability of the on\(hyline registration facility
  11820. to other facilities
  11821. .LP
  11822. \fIAnnex\ G\fR     \(em
  11823.     CCITT\(hyspecified DTE facilities to support the
  11824. OSI Network service
  11825. .LP
  11826. \fIAnnex\ H\fR     \(em
  11827.     Subscription\(hytime optional user facilities that may be
  11828. associated with a network user identifier in conjunction with the NUI
  11829. override facility
  11830. .LP
  11831. \fIAppendix\ I\fR     \(em
  11832.     Examples of data link layer transmitted bit patterns by   the DCE and the DTE
  11833. .LP
  11834. \fIAppendix\ II\fR     \(em
  11835.     An explanation of how the values for N1 in \(sc 2.4.8.5 are derived
  11836. .LP
  11837. \fIAppendix\ III\fR     \(em
  11838.     Examples of multilink resetting procedures
  11839. .LP
  11840. \fIAppendix\ IV\fR     \(em
  11841.     Information on addresses in call set\(hyup and clearing
  11842. packets
  11843. .bp
  11844. .sp 2P
  11845. .LP
  11846. \fB1\fR     \fBDTE/DCE interface characteristics\fR \fB(physical layer)\fR 
  11847. .sp 1P
  11848. .RT
  11849. .PP
  11850. Administrations may offer one or more of the interfaces specified below. 
  11851. The exact use of the relevant points in these Recommendations is 
  11852. detailed below.
  11853. .RT
  11854. .sp 2P
  11855. .LP
  11856. 1.1
  11857.     \fIX.21 interface\fR 
  11858. .sp 1P
  11859. .RT
  11860. .sp 1P
  11861. .LP
  11862. 1.1.1
  11863.     \fIDTE/DCE physical interface elements\fR 
  11864. .sp 9p
  11865. .RT
  11866. .PP
  11867. The DTE/DCE physical interface elements shall be according to
  11868. \(sc\(sc\ 2.1 through\ 2.5 of Recommendation\ X.21.
  11869. .RT
  11870. .sp 1P
  11871. .LP
  11872. 1.1.2
  11873.     \fIProcedures for entering operational phases\fR 
  11874. .sp 9p
  11875. .RT
  11876. .PP
  11877. The procedures for entering operational phases shall be as
  11878. described in \(sc\ 5.2 of Recommendation\ X.21. The data exchanged on circuits\ 
  11879. and\ R when the interface is in states\ 13S, 13R and\ 13 of Figure A\(hy3/X.21 
  11880. will be as described in subsequent sections of this Recommendation. 
  11881. .PP
  11882. The \fInot ready\fR \| states given in \(sc\ 2.5 of Recommendation X.21 are
  11883. considered to be \fInon\(hyoperational\fR states and may be considered 
  11884. by the higher layers to be \fIout of order\fR states (see \(sc\ 4.6 below). 
  11885. .RT
  11886. .sp 1P
  11887. .LP
  11888. 1.1.3
  11889.     \fIFailure detection and test loops\fR 
  11890. .sp 9p
  11891. .RT
  11892. .PP
  11893. The failure detection principles shall be according to \(sc\ 2.6 of
  11894. Recommendation\ X.21. In addition, i\ =\ OFF may be signalled due to momentary
  11895. transmission failures. Higher layers may delay for several seconds before
  11896. considering the interface to be out of order.
  11897. .PP
  11898. The definitions of test loops and the principles of maintenance
  11899. testing using the test loops are provided in Recommendation\ X.150.
  11900. .PP
  11901. A description of the test loops and the procedures for their use is
  11902. given in \(sc\ 7 of Recommendation\ X.21.
  11903. .PP
  11904. Automatic activation by a DTE of a test loop\ 2 in the DCE at the
  11905. remote terminal is not possible. However, some Administrations may permit 
  11906. the DTE to control the equivalent of a test loop\ 2, at the local DSE, 
  11907. to verify the operation of the leased line or subscriber line and/or all 
  11908. or part of the DCE or line terminating equipment. Control of the loop, 
  11909. if provided, may be either manual or automatic, as described in Recommendations\ 
  11910. X.150 and\ X.21 
  11911. respectively.
  11912. .RT
  11913. .sp 1P
  11914. .LP
  11915. 1.1.4
  11916.     \fISignal element timing\fR 
  11917. .sp 9p
  11918. .RT
  11919. .PP
  11920. Signal element timing shall be in accordance with \(sc\ 2.6.3 of
  11921. Recommendation\ X.21.
  11922. .RT
  11923. .sp 2P
  11924. .LP
  11925. 1.2
  11926.     \fIX.21\|bis interface\fR 
  11927. .sp 1P
  11928. .RT
  11929. .sp 1P
  11930. .LP
  11931. 1.2.1
  11932.     \fIDTE/DCE physical interface elements\fR 
  11933. .sp 9p
  11934. .RT
  11935. .PP
  11936. The DTE/DCE physical interface elements shall be according to \(sc\ 1.2 
  11937. of Recommendation\ X.21\|\fIbis\fR . 
  11938. .RT
  11939. .sp 1P
  11940. .LP
  11941. 1.2.2
  11942.     \fIOperational phases\fR 
  11943. .sp 9p
  11944. .RT
  11945. .PP
  11946. When circuit 107 is in the ON condition, and circuits\ 105, 106, 108 and 
  11947. 109, if provided, are in the ON condition, data exchange on circuits\ 103 
  11948. and\ 104 will be as described in subsequent sections of this
  11949. Recommendation.
  11950. .PP
  11951. When circuit 107 is in the OFF condition, or any of circuits 105, 106, 
  11952. 108 or\ 109, if provided, are in the OFF condition, this is considered 
  11953. to be in a \fInon\(hyoperational\fR state, and may be considered by the 
  11954. higher layers to be in an \fIout of order\fR state (see \(sc\ 4.6 below). 
  11955. .RT
  11956. .sp 1P
  11957. .LP
  11958. 1.2.3
  11959.     \fIFailure detection and test loops\fR 
  11960. .sp 9p
  11961. .RT
  11962. .PP
  11963. The failure detection principles, the description of test loops and the 
  11964. procedures for their use shall be according to \(sc\(sc\ 3.1 through\ 3.3 
  11965. of 
  11966. Recommendation\ X.21\|\fIbis\fR . In addition, circuits\ 106 and\ 109 may 
  11967. enter the OFF condition due to momentary transmission failures. Higher 
  11968. layers may delay for several seconds before considering the interface to 
  11969. be out of order. 
  11970. .bp
  11971. .PP
  11972. Automatic activation by a DTE of test loop 2 in the DCE at the remote terminal 
  11973. is not possible. However, some Administrations may permit the DTE to control 
  11974. the equivalent of a test loop\ 2, at the local DSE, to verify the 
  11975. operation of the leased line or subscriber line and/or all or part of the 
  11976. DCE or line terminating equipment. Control of the loop, if provided, may 
  11977. be either manual or automatic, as described in Recommendations\ X.150 and\ 
  11978. X.21\|\fIbis\fR 
  11979. respectively.
  11980. .RT
  11981. .sp 1P
  11982. .LP
  11983. 1.2.4
  11984.     \fISignal element timing\fR 
  11985. .sp 9p
  11986. .RT
  11987. .PP
  11988. Signal element timing shall be in accordance with \(sc\ 3.4 of
  11989. Recommendation\ X.21\|\fIbis\fR .
  11990. .RT
  11991. .sp 1P
  11992. .LP
  11993. 1.3
  11994.     \fIV\(hySeries interface\fR 
  11995. .sp 9p
  11996. .RT
  11997. .PP
  11998. General operation with V\(hySeries modems is as described in \(sc\ 1.2
  11999. above. However, for specific details, particularly related to failure detection 
  12000. principles, loop testing, and the use of circuits\ 107, 109, 113 and\ 114, 
  12001. refer to the appropriate V\(hySeries Recommendations. 
  12002. .PP
  12003. The delay between 105\(hyON and 106\(hyON (when these
  12004. circuits are present) will be more than 10\ ms and less than 1\ s. In addition, 
  12005. circuits\ 106 or\ 109 may enter the OFF condition due to momentary transmission 
  12006. failures or modem retraining. Higher layers may delay for several seconds 
  12007. before considering the interface to be out of order.
  12008. .RT
  12009. .sp 2P
  12010. .LP
  12011. 1.4
  12012.     \fIX.31 interface\fR \v'3p'
  12013. .sp 1P
  12014. .RT
  12015. .sp 1P
  12016. .LP
  12017. 1.4.1
  12018.     \fIDTE/DCE physical interface\fR 
  12019. .sp 9p
  12020. .RT
  12021. .PP
  12022. The DTE/DCE physical interface shall coincide with the R reference point 
  12023. between the DTE and the Terminal Adaptor (TA). The purpose of the TA is 
  12024. .PP
  12025. to allow the operation of a DTE over an ISDN. The functionalities of such 
  12026. a TA when accessing a packet switched data transmission service through 
  12027. semi\(hypermanent ISDN connection (i.e.,\ a non switched B\(hychannel) 
  12028. are described in \(sc\ 7 of Recommendation\ X.31. 
  12029. .PP
  12030. \fINote\ 1\fR \ \(em\ This type of access is considered a dedicated access 
  12031. to a public switched data transmission service. Non dedicated access to 
  12032. a public 
  12033. switched data transmission service is defined in Recommendations\ X.32
  12034. and\ X.31.
  12035. .PP
  12036. \fINote\ 2\fR \ \(em\ The DTE and the TA functionalities may be implemented in
  12037. the same piece of equipment in the case of a packet mode terminal TE1
  12038. conforming to the I\(hyseries Recommendations. In this case, this
  12039. Recommendation covers layer\ 2 and layer\ 3 operation on the semi\(hypermanent
  12040. B\(hychannel.
  12041. .RT
  12042. .sp 1P
  12043. .LP
  12044. 1.4.2
  12045.     \fIOperational phases\fR 
  12046. .sp 9p
  12047. .RT
  12048. .PP
  12049. The operational phases are as described in \(sc 7 of
  12050. Recommendation\ X.31.
  12051. .RT
  12052. .sp 1P
  12053. .LP
  12054. 1.4.3
  12055.     \fIMaintenance\fR 
  12056. .sp 9p
  12057. .RT
  12058. .PP
  12059. The maintenance shall be made as described in \(sc 7.6 of
  12060. Recommendation\ X.31.
  12061. .RT
  12062. .sp 1P
  12063. .LP
  12064. 1.4.4
  12065.     \fISynchronization\fR 
  12066. .sp 9p
  12067. .RT
  12068. .PP
  12069. The synchronization shall be made as described in \(sc 7 of
  12070. Recommendation\ X.31.
  12071. .RT
  12072. .sp 2P
  12073. .LP
  12074. \fB2\fR     \fBLink access procedures across the DTE/DCE interface\fR 
  12075. .sp 1P
  12076. .RT
  12077. .sp 2P
  12078. .LP
  12079. 2.1
  12080.     \fIScope and field of applications\fR \v'3p'
  12081. .sp 1P
  12082. .RT
  12083. .PP
  12084. 2.1.1 
  12085. The 
  12086. Link Access Procedures
  12087. (LAPB and LAP) are
  12088. described as the 
  12089. Data Link Layer Element
  12090. and are used for data
  12091. interchange
  12092. between a DCE and a DTE over a single physical circuit (LAPB and LAP), or
  12093. optionally over multiple physical circuits (LAPB), operating in user classes 
  12094. of service\ 8 to\ 11 as indicated in Recommendation\ X.1. The optional, 
  12095. subscription\(hytime selectable, multiple physical circuit operation with LAPB
  12096. (known as multilink operation) is required if the effects of circuit failures 
  12097. are not to disrupt the Packet Layer operation. 
  12098. .bp
  12099. .sp 9p
  12100. .RT
  12101. .PP
  12102. The single link procedures (SLPs) described in \(sc\(sc\ 2.2, 2.3
  12103. and\ 2.4 (LAPB) and in \(sc\(sc\ 2.2, 2.6 and 2.7 (LAP) are used for data 
  12104. interchange over a single physical circuit, conforming to the description 
  12105. given in \(sc\ 1, 
  12106. between a DTE and a DCE. When the optional multilink operation is employed 
  12107. with LAPB, a single link procedure (SLP) is used independently on each 
  12108. physical 
  12109. circuit, and the multilink procedure (MLP) described in \(sc\ 2.5 is used for
  12110. .LP
  12111. data interchange over these multiple parallel LAPB data links. In addition,
  12112. when only a single physical circuit is employed with LAPB, agreements may be
  12113. made with the Administration to use this optional 
  12114. multilink procedure
  12115. over the one LAPB data link.
  12116. .PP
  12117. 2.1.2
  12118. The 
  12119. single link procedures (SLPs)
  12120. use the principles
  12121. and terminology of the High\(hylevel Data Link Control (HDLC) procedures
  12122. specified by the International Organization for Standardization (ISO). The
  12123. multilink pro
  12124. cedure\ (MLP) is based on the principles and terminology of the Multilink 
  12125. Control Procedures specified by ISO. 
  12126. .PP
  12127. 2.1.3
  12128. Each transmission facility is duplex.
  12129. .PP
  12130. 2.1.4
  12131. DCE compatibility of operation with the ISO balanced classes
  12132. of procedure (Class BA with options\ 2, 8 and Class\ BA with options\ 2, 
  12133. 8, 10) is achieved using the LAPB procedure described in \(sc\(sc\ 2.3 
  12134. and\ 2.4. Of these 
  12135. classes, Class\ BA with options\ 2, 8 (LAPB modulo\ 8) is the basic service, 
  12136. and is available in all networks. Class\ BA with options\ 2, 8, 10 (LAPB 
  12137. modulo\ 128) is recognized as an optional, subscription\(hytime selectable, 
  12138. extended sequence numbering service that may be available in those networks 
  12139. wishing to serve DTE applications having a need for modulo\ 128 sequence 
  12140. numbering. 
  12141. .PP
  12142. DTE manufacturers and implementors must be aware that the
  12143. procedure hereunder described as LAPB modulo\ 8 will be the only one available 
  12144. in all networks. 
  12145. .PP
  12146. Likewise, a DTE may continue to use the LAP procedure described in
  12147. \(sc\(sc\ 2.2, 2.6 and\ 2.7 (in those networks supporting such a procedure), 
  12148. but for 
  12149. new
  12150. DTE implementations, LAPB should be preferred. The LAP procedures are defined 
  12151. for modulo\ 8 basic service only. 
  12152. .PP
  12153. \fINote\fR \ \(em\ Other possible applications for further study are, for
  12154. example:
  12155. .RT
  12156. .LP
  12157.     \(em
  12158.     two\(hyway alternate, asynchronous response mode;
  12159. .LP
  12160.     \(em
  12161.     two\(hyway simultaneous, normal response mode;
  12162. .LP
  12163.     \(em
  12164.     two\(hyway alternate, normal response mode.
  12165. .PP
  12166. 2.1.5
  12167. For those networks that choose to support both the basic and
  12168. extended LAPB sequence numbering services, the choice of either basic mode
  12169. (modulo\ 8) or extended mode (modulo\ 128) may be made at subscription 
  12170. time. The choice of the mode employed for each data link procedure is independent 
  12171. of all others and of the choice of mode for the corresponding Packet Layer 
  12172. procedures. All choices are matters for agreement for a period of time 
  12173. with the 
  12174. Administration.
  12175. .PP
  12176. 2.1.6
  12177. In the case of those networks that support both the LAPB procedure and 
  12178. the LAP procedure, the DCE will maintain an internal mode variable\ B, 
  12179. which it will set as follows: 
  12180. .LP
  12181.     \(em
  12182.     to 1, upon acceptance of an SABM/SABME (modulo 8/modulo\ 128)
  12183. command from the DTE, or upon issuance of an SABM/SABME command
  12184. by the DCE;
  12185. .LP
  12186.     \(em
  12187.     to 0, upon acceptance of an SARM command from the DTE.
  12188. .PP
  12189. Whenever B is 1, the DCE will use the LAPB procedure described in \(sc\(sc\ 
  12190. 2.2, 2.3 and 2.4 below, and is said to be in the LAPB (balanced) mode. 
  12191. .PP
  12192. Whenever B is 0, the DCE will use the LAP procedure described in
  12193. \(sc\(sc\ 2.2, 2.6 and 2.7 below, and is said to be in the LAP mode.
  12194. .PP
  12195. Changes to the mode variable B by the DTE should occur only when the data 
  12196. link has been disconnected as described in \(sc\(sc\ 2.4.4.3 or\ 2.7.3.3 
  12197. below. 
  12198. .PP
  12199. Should a DCE malfunction occur that negates the current setting of
  12200. internal mode variable\ B, the DCE will, upon restoration of operation, 
  12201. not send either a SARM or SABM/SABME command. The DCE may send a DISC command 
  12202. or a 
  12203. .PP
  12204. DM\ response to notify the DTE that the DCE is in the disconnected phase. 
  12205. This will result in the DTE attempting to reinitialize the data link with 
  12206. what the DTE 
  12207. considers to be the proper mode\(hysetting command (SARM or SABM/SABME). 
  12208. The DCE will then be able to set the internal mode variable\ B to its proper 
  12209. value.
  12210. .RT
  12211. .sp 1P
  12212. .LP
  12213. 2.2
  12214.     \fIFrame structure\fR \v'3p'
  12215. .sp 9p
  12216. .RT
  12217. .PP
  12218. 2.2.1
  12219. All transmissions on an SLP are in frames conforming to one of the formats 
  12220. of Table\ 1/X.25 for basic (modulo\ 8) operation, or alternatively one 
  12221. of the formats of Table\ 2/X.25 for extended (modulo\ 128) operation. The 
  12222. flag 
  12223. preceding the address field is defined as the opening flag. The flag following 
  12224. the FCS field is defined as the closing flag. 
  12225. .bp
  12226. .ce
  12227. .line
  12228. .ce
  12229. \fBTable 1/X.25 [T1.25], p.\fR 
  12230. .ce
  12231. .line
  12232. .ce
  12233. \fBTable 2/X.25 [T2.25], p.\fR 
  12234. .ce
  12235. 2.2.2
  12236. .ce
  12237. \fIFlag sequence\fR 
  12238. .ce
  12239. .parag
  12240. .ce
  12241. All frames shall start and end with the flag sequence consisting of one 
  12242. 0\ bit followed by six contiguous 1\ bits and one 0\ bit. The DTE and DCE 
  12243. .ce
  12244. shall only send complete eight\(hybit flag sequences when sending multiple flag
  12245. .ce
  12246. sequences (see \(sc\ 2.2.11). A single flag may be used as both the 
  12247. .ce
  12248. closing
  12249. .ce
  12250. flag
  12251. .ce
  12252. for one frame and the 
  12253. .ce
  12254. opening flag
  12255. .ce
  12256. for the next frame.
  12257. .ce
  12258. .parag
  12259. .ce
  12260. 2.2.3
  12261. .ce
  12262. \fIAddress field\fR 
  12263. .ce
  12264. .parag
  12265. .ce
  12266. The address field shall consist of one octet. The address field
  12267. .ce
  12268. identifies the intended receiver of a command frame and the transmitter of a
  12269. .ce
  12270. response frame. The coding of the address field is described in \(sc\ 2.4.2 
  12271. (LAPB) and in \(sc\ 2.7.1 (LAP) below. 
  12272. .ce
  12273. .parag
  12274. .ce
  12275. 2.2.4
  12276. .ce
  12277. \fIControl field\fR 
  12278. .ce
  12279. .parag
  12280. .ce
  12281. For modulo\ 8 (basic) operation, the control field shall consist of one 
  12282. octet. For modulo\ 128 (extended) operation, the control field shall consist 
  12283. of two octets for frame formats that contain sequence numbers, and one 
  12284. octet 
  12285. .ce
  12286. for frame formats that do not contain sequence numbers. The content of this
  12287. .ce
  12288. field is described in \(sc\ 2.3.2\ (LAPB) and in \(sc\ 2.6.2 (LAP) below.
  12289. .ce
  12290. .parag
  12291. .ce
  12292. 2.2.5
  12293. .ce
  12294. \fIInformation field\fR 
  12295. .ce
  12296. .parag
  12297. .ce
  12298. The information field of a frame, when present, follows the control field 
  12299. (see \(sc\ 2.2.4 above) and precedes the 
  12300. .ce
  12301. frame check sequence field
  12302. .ce
  12303. (see \(sc\ 2.2.7 below).
  12304. .ce
  12305. .parag
  12306. .ce
  12307. See \(sc\(sc 2.3.4.9, 2.5.2, 2.6.4.8 and 5 for the various codings and
  12308. .ce
  12309. groupings of bits in the information field as used in this Recommendation.
  12310. .ce
  12311. .parag
  12312. .ce
  12313.  
  12314. .ce
  12315. See \(sc\(sc 2.3.4.9, 2.4.8.5, 2.6.4.8 and 2.7.7.5 below with regard to 
  12316. the maximum information field length. 
  12317. .ce
  12318. .parag
  12319. .ce
  12320. 2.2.6
  12321. .ce
  12322. \fITransparency\fR 
  12323. .ce
  12324. .parag
  12325. .ce
  12326. The DCE or DTE, when transmitting, shall examine the frame content between 
  12327. the two flag sequences including the address, control, information and 
  12328. FCS fields and shall insert a 0 bit after all sequences of 5 contiguous 
  12329. 1\ bits (including the last 5\ bits of the FCS) to ensure that a flag sequence 
  12330. is not 
  12331. .ce
  12332. simulated. The DCE or DTE, when receiving, shall examine the frame content 
  12333. and shall discard any 0\ bit which directly follows\ 5 contiguous 1\ bits. 
  12334. .ce
  12335. .parag
  12336. .ce
  12337. 2.2.7
  12338. .ce
  12339. \fIFrame check sequence (FCS)\fR 
  12340. .ce
  12341. \fI field\fR 
  12342. .ce
  12343. .parag
  12344. .ce
  12345. The notation used to describe the FCS is based on the property of cyclic 
  12346. codes that a code vector such as 1000000100001 can be represented by a 
  12347. polynomial \fIP\fR 
  12348. .ce
  12349. (\fIx\fR 
  12350. .ce
  12351. )\ =\ \fIx\fR 
  12352. .ce
  12353. \u1\d\u2\d\ +\ \fIx\fR 
  12354. .ce
  12355. \u5\d\ +\ 1. The elements of an \fIn\fR 
  12356. .ce
  12357. \(hyelement
  12358. .ce
  12359. code word are thus the coefficients of a polynomial of order \fIn\fR 
  12360. .ce
  12361. \ \(em\ 1. In this application, these coefficients can have the value\ 
  12362. 0 or\ 1 and the polynomial 
  12363. .ce
  12364. operations are performed modulo\ 2. The polynomial representing the content 
  12365. of a frame is generated using the first bit received after the frame opening 
  12366. flag as the coefficient of the highest order term. 
  12367. .ce
  12368. .parag
  12369. .ce
  12370. The FCS field shall be a 16\(hybit sequence. It shall be the ones
  12371. .ce
  12372. complement of the sum (modulo\ 2) of:
  12373. .ce
  12374. .parag
  12375. .ce
  12376. 1)
  12377. .ce
  12378. the remainder of
  12379. .ce
  12380. \fIx\fR 
  12381. .ce
  12382. \uD\dlFk\fR 
  12383. .ce
  12384. (\fIx\fR 
  12385. .ce
  12386. \u1\d\u5\d\uD\dlF036+\ \fIx\fR 
  12387. .ce
  12388. \u1\d\u4\d\ +\ \fIx\fR 
  12389. .ce
  12390. \u1\d\u3\d\ +
  12391. .ce
  12392. \fIx\fR 
  12393. .ce
  12394. \u1\d\u2\d\ +\ \fIx\fR 
  12395. .ce
  12396. \u1\d\u1\d\ +\ \fIx\fR 
  12397. .ce
  12398. \u1\d\u0\d\ +\ \fIx\fR 
  12399. .ce
  12400. \u9\d\ +\ \fIx\fR 
  12401. .ce
  12402. \u8\d\ +
  12403. .ce
  12404. \fIx\fR 
  12405. .ce
  12406. \u7\d\ +\ \fIx\fR 
  12407. .ce
  12408. \u6\d\ +\ \fIx\fR 
  12409. .ce
  12410. \u5\d\ +\ \fIx\fR 
  12411. .ce
  12412. \u4\d\uD\dlF036+\ \fIx\fR 
  12413. .ce
  12414. \u3\d\ +
  12415. .ce
  12416. +\ \fIx\fR 
  12417. .ce
  12418. \u2\d\ +\ \fIx\fR 
  12419. .ce
  12420. \ +\ 1) divided (modulo\ 2)
  12421. .ce
  12422. by the
  12423. .ce
  12424. generator polynomial \fIx\fR 
  12425. .ce
  12426. \u1\d\u6\d\ +\ \fIx\fR 
  12427. .ce
  12428. \u1\d\u2\d\ +\ \fIx\fR 
  12429. .ce
  12430. \u5\d\ +\ 1,
  12431. .ce
  12432. where \fIk\fR 
  12433. .ce
  12434. is the number of bits in the frame existing between,
  12435. .ce
  12436. but not including, the final bit of the opening flag and the
  12437. .ce
  12438. first bit of the FCS, excluding bits inserted for transparency,
  12439. .ce
  12440. and
  12441. .ce
  12442. .parag
  12443. .ce
  12444. 2)
  12445. .ce
  12446. the remainder of the division (modulo 2) by the generator
  12447. .ce
  12448. polynomial \fIx\fR 
  12449. .ce
  12450. \u1\d\u6\d\ +\ \fIx\fR 
  12451. .ce
  12452. \u1\d\u2\d\ +\ \fIx\fR 
  12453. .ce
  12454. \u5\d\ +\ 1 of the
  12455. .ce
  12456. product of \fIx\fR 
  12457. .ce
  12458. \u1\d\u6\d by the content of the frame, existing
  12459. .ce
  12460. between but not including, the final bit of the opening flag and
  12461. .ce
  12462. the first bit of the FCS, excluding bits inserted for
  12463. .ce
  12464. transparency.
  12465. .ce
  12466. .parag
  12467. .ce
  12468.  
  12469. .ce
  12470. As a typical implementation, at the transmitter, the initial
  12471. .ce
  12472. content of the register of the device computing the remainder of the division 
  12473. is preset to all 1s and is then modified by division by the generator 
  12474. .ce
  12475. polynomial (as described above) on the address, control and information 
  12476. fields; the ones complement of the resulting remainder is transmitted as 
  12477. the 16\(hybit 
  12478. .ce
  12479. FCS.
  12480. .ce
  12481. .parag
  12482. .ce
  12483. At the receiver, the initial content of the register of the device
  12484. .ce
  12485. computing the remainder is preset to all 1s. The final remainder, after
  12486. .ce
  12487. multiplication by \fIx\fR 
  12488. .ce
  12489. \u1\d\u6\d and then division (modulo\ 2) by the generator
  12490. .ce
  12491. polynomial \fIx\fR 
  12492. .ce
  12493. \u1\d\u6\d\ +\ \fIx\fR 
  12494. .ce
  12495. \u1\d\u2\d\ +\ \fIx\fR 
  12496. .ce
  12497. \u5\d\ +\ 1 of the serial incoming protected bits and the FCS, will be 
  12498. 0001110100001111 (\fIx\fR 
  12499. .ce
  12500. \u1\d\u5\d through
  12501. .ce
  12502. \fIx\fR 
  12503. .ce
  12504. \u0\d, respectively) in the absence of transmission errors.
  12505. .ce
  12506. .parag
  12507. .ce
  12508. \fINote\fR 
  12509. .ce
  12510. \ \(em\ Examples of transmitted bit patterns by the DCE and the DTE illustrating 
  12511. application of the transparency mechanism and the frame check 
  12512. .ce
  12513. sequence to the SABM command and the UA response are given in Appendix\ I.
  12514. .ce
  12515. .parag
  12516. .ce
  12517. 2.2.8
  12518. .ce
  12519. \fIOrder of bit transmission\fR 
  12520. .ce
  12521. .parag
  12522. .ce
  12523. Addresses, commands, responses and sequence numbers shall be
  12524. .ce
  12525. transmitted with the low\(hyorder bit first (for example, the first bit of the
  12526. .ce
  12527. sequence number that is transmitted shall have the weight 2\u0\d). The 
  12528. order of transmitting bits within the information field is not specified 
  12529. under \(sc\ 2 of 
  12530. .ce
  12531. this Recommendation. The FCS shall be transmitted to the line commencing 
  12532. with the coefficient of the highest term, which is found in bit position\ 
  12533. 16 of the FCS\ field (see Tables\ 1/X.25 and 2/X.25). 
  12534. .ce
  12535. .parag
  12536. .ce
  12537. \fINote\fR 
  12538. .ce
  12539. \ \(em\ In Tables 1/X.25 to 13/X.25, bit 1 is defined as the
  12540. .ce
  12541. low\(hyorder bit.
  12542. .ce
  12543. .parag
  12544. .ce
  12545. 2.2.9
  12546. .ce
  12547. \fIInvalid frames\fR 
  12548. .ce
  12549. .parag
  12550. .ce
  12551. The definition of an invalid frame is described in \(sc\ 2.3.5.3 (LAPB) 
  12552. and in \(sc\ 2.6.5.3 (LAP) below. 
  12553. .ce
  12554. .parag
  12555. .ce
  12556. 2.2.10
  12557. .ce
  12558. \fIFrame abortion\fR 
  12559. .ce
  12560. .parag
  12561. .ce
  12562. Aborting a frame is performed by transmitting at least seven
  12563. .ce
  12564. contiguous 1\ bits (with no inserted 0\ bits).
  12565. .ce
  12566. .parag
  12567. .ce
  12568. 2.2.11
  12569. .ce
  12570. \fIInterframe time fill\fR 
  12571. .ce
  12572. .parag
  12573. .ce
  12574. Interframe time fill is accomplished by transmitting contiguous
  12575. .ce
  12576. flags between frames, i.e.\ multiple eight\(hybit flag sequences (see
  12577. .ce
  12578. \(sc\ 2.2.2).
  12579. .ce
  12580. .parag
  12581. .ce
  12582. 2.2.12
  12583. .ce
  12584. \fILink channel states\fR 
  12585. .ce
  12586. .parag
  12587. .ce
  12588. A link channel as defined here is the means for transmission for
  12589. .ce
  12590. one direction.
  12591. .ce
  12592. .parag
  12593. .ce
  12594. 2.2.12.1
  12595. .ce
  12596. \fIActive channel state\fR 
  12597. .ce
  12598. .parag
  12599. .ce
  12600. The DCE incoming or outgoing channel is defined to be in an active condition 
  12601. when it is receiving or transmitting, respectively, a frame, an 
  12602. .ce
  12603. abortion sequence or interframe time fill.
  12604. .ce
  12605. .parag
  12606. .ce
  12607. 2.2.12.2
  12608. .ce
  12609. \fIIdle channel state\fR 
  12610. .ce
  12611. .parag
  12612. .ce
  12613. The DCE incoming or outgoing channel is defined to be in an idle
  12614. .ce
  12615. condition when it is receiving or transmitting, respectively, a continuous\ 
  12616. 1s state for a period of at least 15\ bit times. 
  12617. .ce
  12618. .parag
  12619. .ce
  12620. See \(sc\ 2.3.5.5 for a description of DCE action when an idle condition 
  12621. exists on its incoming channel for an excessive period of time. 
  12622. .ce
  12623. .parag
  12624. .ce
  12625.  
  12626. .ce
  12627. 2.3
  12628. .ce
  12629. \fILAPB elements of procedures\fR 
  12630. .ce
  12631. .parag
  12632. .ce
  12633. 2.3.1
  12634. .ce
  12635. The LAPB elements of procedures are defined in terms of actions
  12636. .ce
  12637. that occur on receipt of frames at the DCE or\ DTE.
  12638. .ce
  12639. .parag
  12640. .ce
  12641. The elements of procedures specified below contain the selection
  12642. .ce
  12643. of commands and responses relevant to the LAPB data link and system
  12644. .ce
  12645. configurations
  12646. .ce
  12647. described in \(sc\ 2.1 above. Together, \(sc\(sc\ 2.2 and 2.3 form the general
  12648. .ce
  12649. requirements for the proper management of a LAPB access data link.
  12650. .ce
  12651. .parag
  12652. .ce
  12653.  
  12654. .ce
  12655. 2.3.2
  12656. .ce
  12657. \fILAPB control field formats and parameters\fR 
  12658. .ce
  12659. .parag
  12660. .ce
  12661.  
  12662. .ce
  12663. 2.3.2.1
  12664. .ce
  12665. \fIControl field formats\fR 
  12666. .ce
  12667. .parag
  12668. .ce
  12669. The control field contains a command or a response, and sequence
  12670. .ce
  12671. numbers where applicable.
  12672. .ce
  12673. .parag
  12674. .ce
  12675. Three types of control field formats are used to perform numbered
  12676. .ce
  12677. information transfer (I\ format), numbered supervisory functions (S\ format) 
  12678. and unnumbered control functions (U\ format). 
  12679. .ce
  12680. .parag
  12681. .ce
  12682. The control field formats for basic (modulo\ 8) operation are depicted 
  12683. in Table\ 3/X.25. 
  12684. .ce
  12685. .parag
  12686. .ce
  12687.  
  12688. .ce
  12689. The control field formats for extended (modulo 128) operation are
  12690. .ce
  12691. depicted in Table\ 4/X.25.
  12692. .ce
  12693. .parag
  12694. .ce
  12695. .line
  12696. .ce
  12697. \fBTable 3/X.25 [T3.25], p.\fR 
  12698. .ce
  12699. .line
  12700. .ce
  12701. \fBTable 4/X.25 [T4/X.25], p.\fR 
  12702. .ce
  12703. 2.3.2.1.1
  12704. .ce
  12705. \fIInformation transfer format\fR 
  12706. .ce
  12707. \fI \(em I\fR 
  12708. .ce
  12709. .parag
  12710. .ce
  12711. The I format is used to perform an information transfer. The
  12712. .ce
  12713. functions of N(S), N(R) and P are independent; i.e.,\ each I\ frame has 
  12714. an N(S), an N(R) which may or may not acknowledge additional I\ frames 
  12715. received by the 
  12716. .ce
  12717. DCE or DTE, and a P\ bit that may be set to\ 0 or\ 1.
  12718. .ce
  12719. .parag
  12720. .ce
  12721. 2.3.2.1.2
  12722. .ce
  12723. \fISupervisory format\fR 
  12724. .ce
  12725. \fI \(em S\fR 
  12726. .ce
  12727. .parag
  12728. .ce
  12729. The S format is used to perform data link supervisory control
  12730. .ce
  12731. functions such as acknowledge I\ frames, request retransmission of I\ frames, 
  12732. and to request a temporary suspension of transmission of I\ frames. The 
  12733. functions of N(R) and P/F are independent; i.e.,\ each supervisory frame 
  12734. has an N(R) which 
  12735. .ce
  12736. may or may not acknowledge additional I\ frames received by the DCE or\ 
  12737. DTE, and a P/F\ bit that may be set to\ 0 or\ 1. 
  12738. .ce
  12739. .parag
  12740. .ce
  12741. 2.3.2.1.3
  12742. .ce
  12743. \fIUnnumbered format\fR 
  12744. .ce
  12745. \fI \(em U\fR 
  12746. .ce
  12747. .parag
  12748. .ce
  12749. The U format is used to provide additional data link control
  12750. .ce
  12751. functions. This format contains no sequence numbers, but does include a 
  12752. P/F\ bit that may be set to\ 0 or\ 1. The unnumbered frames have the same 
  12753. control field 
  12754. .ce
  12755. length (one octet) in both basic (modulo\ 8) operation and extended (modulo\ 
  12756. 128) operation. 
  12757. .ce
  12758. .parag
  12759. .ce
  12760. 2.3.2.2
  12761. .ce
  12762. \fIControl field parameters\fR 
  12763. .ce
  12764. .parag
  12765. .ce
  12766. The various parameters associated with the control field formats
  12767. .ce
  12768. are described below.
  12769. .ce
  12770. .parag
  12771. .ce
  12772. 2.3.2.2.1
  12773. .ce
  12774. \fIModulus\fR 
  12775. .ce
  12776. .parag
  12777. .ce
  12778. Each I frame is sequentially numbered and may have the value\ 0
  12779. .ce
  12780. through modulus minus\ 1 (where \*Qmodulus\*U is the modulus of the sequence
  12781. .ce
  12782. numbers). The modulus equals either\ 8 or\ 128 and the sequence numbers cycle
  12783. .ce
  12784. through the entire range.
  12785. .ce
  12786. .parag
  12787. .ce
  12788. 2.3.2.2.2
  12789. .ce
  12790. \fISend state variable\fR 
  12791. .ce
  12792. \fI V(S)\fR 
  12793. .ce
  12794. .parag
  12795. .ce
  12796. The send state variable V(S) denotes the sequence number of the
  12797. .ce
  12798. next in\(hysequence I\ frame to be transmitted. V(S) can take on the values\ 0
  12799. .ce
  12800. through modulus minus\ 1. The value of V(S) is incremented by\ 1 with each
  12801. .ce
  12802. successive I\ frame transmission, but cannot exceed the N(R) of the last
  12803. .ce
  12804. received\ I or supervisory frame by more than the maximum number of outstanding 
  12805. I\ frames\ (\fIk\fR 
  12806. .ce
  12807. ). The value of\ k is defined in \(sc\ 2.4.8.6 below.
  12808. .ce
  12809. .parag
  12810. .ce
  12811.  
  12812. .ce
  12813. 2.3.2.2.3
  12814. .ce
  12815. \fISend sequence number\fR 
  12816. .ce
  12817. \fI N(S)\fR 
  12818. .ce
  12819. .parag
  12820. .ce
  12821. Only I frames contain N(S), the send sequence number of transmitted I\ 
  12822. frames. At the time that an in\(hysequence I\ frame is designated for 
  12823. .ce
  12824. transmission, the value of N(S) is set equal to the value of the send state
  12825. .ce
  12826. variable\ V(S).
  12827. .ce
  12828. .parag
  12829. .ce
  12830. 2.3.2.2.4
  12831. .ce
  12832. \fIReceive state variable\fR 
  12833. .ce
  12834. \fIV(R)\fR 
  12835. .ce
  12836. .parag
  12837. .ce
  12838. The receive state variable V(R) denotes the sequence number of the next 
  12839. in\(hysequence I\ frame expected to be received. V(R) can take on the values 
  12840. 0 through modulus minus\ 1. The value of V(R) is incremented by\ 1 by the 
  12841. receipt of an error\(hyfree, in\(hysequence I\ frame whose send sequence 
  12842. number N(S) equals 
  12843. .ce
  12844. the receive state variable V(R).
  12845. .ce
  12846. .parag
  12847. .ce
  12848. 2.3.2.2.5
  12849. .ce
  12850. \fIReceive sequence number\fR 
  12851. .ce
  12852. \fI N(R)\fR 
  12853. .ce
  12854. .parag
  12855. .ce
  12856. All I frames and supervisory frames contain N(R), the expected send sequence 
  12857. number of the next received I\ frame. At the time that a frame of the above 
  12858. types is designated for transmission, the value of N(R) is set equal to 
  12859. the current value of the receive state variable V(R). N(R) indicates that 
  12860. the DCE or DTE transmitting the N(R) has received correctly all I\ frames 
  12861. numbered up to and including N(R)\ \(em\ 1. 
  12862. .ce
  12863. .parag
  12864. .ce
  12865. 2.3.2.2.6
  12866. .ce
  12867. \fIPoll/Final bit\fR 
  12868. .ce
  12869. \fI P/F\fR 
  12870. .ce
  12871. .parag
  12872. .ce
  12873. All frames contain P/F, the Poll/Final bit. In command frames, the P/F 
  12874. bit is referred to as the P bit. In response frames, it is referred to 
  12875. as the F\ bit. 
  12876. .ce
  12877. .parag
  12878. .ce
  12879. 2.3.3
  12880. .ce
  12881. \fIFunctions of the Poll/Final bit\fR 
  12882. .ce
  12883. .parag
  12884. .ce
  12885. The Poll bit set to 1 is used by the DCE or DTE to solicit (poll) a response 
  12886. from the DTE or DCE, respectively. The Final bit set to\ 1 is used by the 
  12887. DCE or DTE to indicate the response frame transmitted by the DTE or DCE, 
  12888. .ce
  12889. respectively, as a result of the soliciting (poll) command.
  12890. .ce
  12891. .parag
  12892. .ce
  12893. The use of the P/F bit is described in \(sc\ 2.4.3 below.
  12894. .ce
  12895. .parag
  12896. .ce
  12897. 2.3.4
  12898. .ce
  12899. \fICommands and responses\fR 
  12900. .ce
  12901. .parag
  12902. .ce
  12903. For basic (modulo 8) operation, the commands and responses
  12904. .ce
  12905. represented in Table\ 5/X.25 will be supported by the DCE and the\ DTE.
  12906. .ce
  12907. .parag
  12908. .ce
  12909.  
  12910. .ce
  12911. For extended (modulo 128) operation, the commands and responses
  12912. .ce
  12913. represented in Table\ 6/X.25 will be supported by the DCE and the DTE.
  12914. .ce
  12915. .parag
  12916. .ce
  12917.  
  12918. .ce
  12919. For purposes of the LAPB procedures, the supervisory function bit encoding 
  12920. \*Q11\*U and those encodings of the modifier function bits in 
  12921. .ce
  12922. Tables\ 3/X.25 and 4/X.25 not identified in Tables\ 5/X.25 or 6/X.25 are
  12923. .ce
  12924. identified as \*Qundefined or not implemented\*U command and response control
  12925. .ce
  12926. fields.
  12927. .ce
  12928. .parag
  12929. .ce
  12930. The commands and responses in Tables 5/X.25 and 6/X.25 are defined as  follows:
  12931. .ce
  12932. .parag
  12933. .ce
  12934. 2.3.4.1
  12935. .ce
  12936. \fIInformation (I)\fR 
  12937. .ce
  12938. \fI command\fR 
  12939. .ce
  12940. .parag
  12941. .ce
  12942. The function of the information (I) command is to transfer across a data 
  12943. link a sequentially numbered frame containing an information field. 
  12944. .ce
  12945. .parag
  12946. .ce
  12947. .line
  12948. .ce
  12949. \fBTable 5/X.25 [T5.25], p.\fR 
  12950. .ce
  12951. .line
  12952. .ce
  12953. \fBTable 6/X.25 [T6.25], p.\fR 
  12954. .ce
  12955. 2.3.4.2
  12956. .ce
  12957. \fIReceive ready (RR)\fR 
  12958. .ce
  12959. \fI command and response\fR 
  12960. .ce
  12961. .parag
  12962. .ce
  12963. The receive ready (RR) supervisory frame is used by the DCE
  12964. .ce
  12965. or DTE to:
  12966. .ce
  12967. .parag
  12968. .ce
  12969.  
  12970. .ce
  12971. 1)
  12972. .ce
  12973. indicate it is ready to receive an I frame; and
  12974. .ce
  12975. .parag
  12976. .ce
  12977. 2)
  12978. .ce
  12979. acknowledge previously received I frames numbered up to and
  12980. .ce
  12981. including N(R)\ \(em\ 1.
  12982. .ce
  12983. .parag
  12984. .ce
  12985. An RR frame may be used to indicate the clearance of a busy
  12986. .ce
  12987. condition that was reported by the earlier transmission of an RNR frame 
  12988. by that same station (DCE or\ DTE). In addition to indicating the DCE or 
  12989. DTE status, the RR command with the P\ bit set to\ 1 may be used by the 
  12990. DCE or DTE to ask for the status of the DTE or DCE, respectively. 
  12991. .ce
  12992. .parag
  12993. .ce
  12994. 2.3.4.3
  12995. .ce
  12996. \fIReceive not ready (RNR) command and response\fR 
  12997. .ce
  12998. .parag
  12999. .ce
  13000. The receive not ready (RNR) supervisory frame is used by the DCE or DTE 
  13001. to indicate a busy condition; i.e.\ temporary inability to accept 
  13002. .ce
  13003. additional incoming I\ frames. I\ frames numbered up to and including N(R)\ 
  13004. \(em\ 1 
  13005. .ce
  13006. are acknowledged. I\ frame N(R) and any subsequent I\ frames received, if any,
  13007. .ce
  13008. are not acknowledged; the acceptance status of these I\ frames will be 
  13009. indicated in subsequent exchanges. 
  13010. .ce
  13011. .parag
  13012. .ce
  13013. In addition to indicating the DCE or DTE status, the RNR command with the 
  13014. P bit set to\ 1 may be used by an DCE or DTE to ask for the status of the 
  13015. .ce
  13016. DTE or DCE, respectively.
  13017. .ce
  13018. .parag
  13019. .ce
  13020. 2.3.4.4
  13021. .ce
  13022. \fIReject (REJ) command and response\fR 
  13023. .ce
  13024. .parag
  13025. .ce
  13026. The reject (REJ) supervisory frame is used by the DCE or DTE to request 
  13027. transmission of I\ frames starting with the frame numbered N(R). 
  13028. .ce
  13029. I\ frames numbered N(R)\ \(em\ 1 and below are acknowledged. Additional 
  13030. I\ frames 
  13031. .ce
  13032. pending initial transmission may be transmitted following the retransmitted
  13033. .ce
  13034. I\ frame(s).
  13035. .ce
  13036. .parag
  13037. .ce
  13038.  
  13039. .ce
  13040. Only one REJ exception condition for a given direction of information transfer 
  13041. may be established at any time. The REJ exception condition is cleared 
  13042. (reset) upon the receipt of an I\ frame with an N(S) equal to the N(R) 
  13043. of the 
  13044. .ce
  13045. REJ\ frame.
  13046. .ce
  13047. .parag
  13048. .ce
  13049. An REJ frame may be used to indicate the clearance of a busy condition 
  13050. that was reported by the earlier transmission of an RNR frame by that same 
  13051. .ce
  13052. station (DCE or\ DTE). In addition to indicating the DCE or DTE status, the
  13053. .ce
  13054. REJ\ command with the P bit set to\ 1 may be used by the DCE or\ DTE to ask for
  13055. .ce
  13056. the status of the DTE or\ DCE, respectively.
  13057. .ce
  13058. .parag
  13059. .ce
  13060. \fR 
  13061. .ce
  13062. 2.3.4.5
  13063. .ce
  13064. \fISet asynchronous balanced mode (SABM)\fR 
  13065. .ce
  13066. \fIcommand/\fR 
  13067. .ce
  13068. \fISet asynchronous balanced mode extended (SABME)\fR 
  13069. .ce
  13070.  
  13071. .ce
  13072. \fIcommand (subscription time option)\fR 
  13073. .ce
  13074. .parag
  13075. .ce
  13076.  
  13077. .ce
  13078. The SABM unnumbered command is used to place the addressed DCE or DTE in 
  13079. an asynchronous balanced mode (ABM) information transfer phase where all 
  13080. command/response control fields will be one\ octet in length. 
  13081. .ce
  13082. .parag
  13083. .ce
  13084. The SABME unnumbered command is used to place the addressed DCE or DTE 
  13085. in an asynchronous balanced mode\ (ABM) information transfer phase where 
  13086. .ce
  13087. numbered command/response control fields will be two octets in length, and
  13088. .ce
  13089. unnumbered command/response control fields will be one octet in length.
  13090. .ce
  13091. .parag
  13092. .ce
  13093.  
  13094. .ce
  13095. No information field is permitted with the SABM or SABME command. The transmission 
  13096. of a SABM/SABME command indicates the clearance of a busy 
  13097. .ce
  13098. condition that was reported by the earlier trans
  13099. .ce
  13100. mission\ of an RNR\ frame by   that
  13101. .ce
  13102. same station (DCE or\ DTE). The DCE or DTE confirms acceptance of SABM/SABME
  13103. .ce
  13104. [modulo\ 8 (basic) operation/modulo\ 128 (extended) operation] command by the
  13105. .ce
  13106. transmission, at the first opportunity, of a UA\ response. Upon acceptance of
  13107. .ce
  13108. this command, the DCE or DTE send state variable\ V(S) and receive state
  13109. .ce
  13110. variable V(R) are set to\ 0.
  13111. .ce
  13112. .parag
  13113. .ce
  13114. Previously transmitted I\ frames that are unacknowledged when this
  13115. .ce
  13116. command is actioned remain unac
  13117. .ce
  13118. knowledged.\ It is the responsibility of a
  13119. .ce
  13120. higher layer (e.g.\ Packet Layer or MLP) to recover from the possible loss of
  13121. .ce
  13122. the contents (e.g.\ packets) of such I\ frames.
  13123. .ce
  13124. .parag
  13125. .ce
  13126. \fINote\fR 
  13127. .ce
  13128. \ \(em\ The mode of operation of a data link [basic (modulo 8) or
  13129. .ce
  13130. extended (modulo\ 128)] is determined at subscription time and is only 
  13131. changed by going through a new subscription process. 
  13132. .ce
  13133. .parag
  13134. .ce
  13135. 2.3.4.6
  13136. .ce
  13137. \fIDisconnect (DISC)\fR 
  13138. .ce
  13139. \fI command\fR 
  13140. .ce
  13141. .parag
  13142. .ce
  13143. The DISC unnumbered command is used to terminate the mode
  13144. .ce
  13145. previously set. It is used to inform the DCE or DTE receiving the DISC 
  13146. command that the DTE or DCE sending the DISC command is suspending operation. 
  13147. No 
  13148. .ce
  13149. information field is permitted with the DISC command. Prior to actioning the
  13150. .ce
  13151. DISC command, the DCE or DTE receiving the DISC command confirms the acceptance 
  13152. of the DISC command by the transmission of a UA response. The DTE or DCE 
  13153. .ce
  13154. sending the DISC command enters the disconnected phase when it receives the
  13155. .ce
  13156. acknowledging UA response.
  13157. .ce
  13158. .parag
  13159. .ce
  13160. Previously transmitted I frames that are unacknowledged when this
  13161. .ce
  13162. command is actioned remain unacknowledged. It is the responsibility of 
  13163. a higher layer (e.g.\ Packet Layer or MLP) to recover from the possible 
  13164. loss of the 
  13165. .ce
  13166. contents (e.g.,\ packets) of such I frames.
  13167. .ce
  13168. .parag
  13169. .ce
  13170. 2.3.4.7
  13171. .ce
  13172. \fIUnnumbered acknowledgement (UA)\fR 
  13173. .ce
  13174. \fI response\fR 
  13175. .ce
  13176. .parag
  13177. .ce
  13178. The UA unnumbered response is used by the DCE or DTE to acknowledge the 
  13179. receipt and acceptance of the mode\(hysetting commands. Received mode\(hysetting 
  13180. commands are not actioned until the UA response is transmitted. The 
  13181. .ce
  13182. transmission of a UA response indicates the clearance of a busy condition 
  13183. that was reported by the earlier transmission of an RNR frame by that same 
  13184. station (DCE or DTE). No information field is permitted with the UA response. 
  13185. .ce
  13186. .parag
  13187. .ce
  13188.  
  13189. .ce
  13190. 2.3.4.8
  13191. .ce
  13192. \fIDisconnected mode (DM)\fR 
  13193. .ce
  13194. \fI response\fR 
  13195. .ce
  13196. .parag
  13197. .ce
  13198. The DM unnumbered response is used to report a status where the DCE or 
  13199. DTE is logically disconnected from the data link, and is in the disconnected 
  13200. phase. The DM response may be sent to indicate that the DCE or DTE has 
  13201. entered the disconnected phase without benefit of having received a DISC 
  13202. command, or, if sent in response to the reception of a mode setting command, 
  13203. is sent to 
  13204. .ce
  13205. inform the DTE or DCE that the DCE or DTE, respectively, is still in the
  13206. .ce
  13207. disconnected phase and cannot execute the set mode command. No information
  13208. .ce
  13209. field is permitted with the DM response.
  13210. .ce
  13211. .parag
  13212. .ce
  13213. A DCE or DTE in a disconnected phase will monitor received commands
  13214. .ce
  13215. and will react to an SABM/SABME command as outlined in \(sc\ 2.4.4 below, 
  13216. and will respond with a DM response with the F bit set to\ 1 to any other 
  13217. command 
  13218. .ce
  13219. received with the P\ bit set to\ 1.
  13220. .ce
  13221. .parag
  13222. .ce
  13223. 2.3.4.9
  13224. .ce
  13225. \fIFrame reject (FRMR)\fR 
  13226. .ce
  13227. \fI response\fR 
  13228. .ce
  13229. .parag
  13230. .ce
  13231. The FRMR unnumbered response is used by the DCE or DTE to report an error 
  13232. condition not recoverable by retransmission of the identical frame; 
  13233. .ce
  13234. i.e.\ at least one of the following conditions, which results from the 
  13235. receipt of a valid frame: 
  13236. .ce
  13237. .parag
  13238. .ce
  13239. 1)
  13240. .ce
  13241. the receipt of a command or response control field that is
  13242. .ce
  13243. undefined or not implemented;
  13244. .ce
  13245. .parag
  13246. .ce
  13247. 2)
  13248. .ce
  13249. the receipt of an I frame with an information field which
  13250. .ce
  13251. exceeds the maximum established length;
  13252. .ce
  13253. .parag
  13254. .ce
  13255. 3)
  13256. .ce
  13257. the receipt of an invalid N(R); or
  13258. .ce
  13259. .parag
  13260. .ce
  13261. 4)
  13262. .ce
  13263. the receipt of a frame with an information field which is
  13264. .ce
  13265. not permitted or the receipt of a supervisory or unnumbered
  13266. .ce
  13267. frame with incorrect length.
  13268. .ce
  13269. .parag
  13270. .ce
  13271. An undefined or not implemented control field is any of the
  13272. .ce
  13273. control field encodings that are not identified in Tables\ 5/X.25 or\ 6/X.25.
  13274. .ce
  13275. .parag
  13276. .ce
  13277.  
  13278. .ce
  13279. A valid N(R) must be within the range from the lowest send sequence
  13280. .ce
  13281. number N(S) of the still unacknowledged frame(s) to the current DCE send 
  13282. state variable inclusive (or to the current internal variable \fIx\fR 
  13283. .ce
  13284. if the DCE is in
  13285. .ce
  13286. the timer recovery condition as described in \(sc\ 2.4.5.9).
  13287. .ce
  13288. .parag
  13289. .ce
  13290.  
  13291. .ce
  13292. An information field which immediately follows the control field, and consists 
  13293. of\ 3 or 5\ octets [modulo\ 8 (basic) operation or modulo\ 128 (extended) 
  13294. operation, respectively], is returned with this response and provides the 
  13295. .ce
  13296. reason for the FRMR response. These formats are given in Tables\ 7/X.25
  13297. .ce
  13298. and\ 8/X.25.
  13299. .ce
  13300. .parag
  13301. .ce
  13302. 2.3.5
  13303. .ce
  13304. \fIException condition reporting and recovery\fR 
  13305. .ce
  13306. .parag
  13307. .ce
  13308. The error recovery procedures which are available to effect
  13309. .ce
  13310. recovery following the detection/occurrence of an 
  13311. .ce
  13312. exception condition
  13313. .ce
  13314.  at the Data Link Layer are described below. Exception conditions described 
  13315. are those situations which may occur as the result of transmission errors, 
  13316. DCE or DTE malfunction, or operational situations. 
  13317. .ce
  13318. .parag
  13319. .ce
  13320. 2.3.5.1
  13321. .ce
  13322. \fIBusy condition\fR 
  13323. .ce
  13324. .parag
  13325. .ce
  13326. The busy condition results when the DCE or DTE is temporarily
  13327. .ce
  13328. unable to continue to receive I frames due to internal constraints,
  13329. .ce
  13330. e.g.\ receive buffering limitations. In this case an RNR frame is transmitted
  13331. .ce
  13332. from the busy DCE or DTE. I\ frames pending transmission may be transmitted 
  13333. from the busy DCE or DTE prior to or following the RNR\ frame. 
  13334. .ce
  13335. .parag
  13336. .ce
  13337. An indication that the busy condition has cleared is communicated by the 
  13338. transmission of a UA (only in response to a SABM/SABME command), RR, REJ 
  13339. or SABM/SABME (modulo\ 8/modulo\ 128) frame. 
  13340. .ce
  13341. .parag
  13342. .ce
  13343. .line
  13344. .ce
  13345. \fBTable 7/X.25 [T7.25], p.\fR 
  13346. .ce
  13347. .line
  13348. .ce
  13349. \fBTable 8/X.25 [T8.25], p.\fR 
  13350. .ce
  13351. 2.3.5.2
  13352. .ce
  13353. \fIN(S) sequence error condition\fR 
  13354. .ce
  13355. .parag
  13356. .ce
  13357. The information field of all I frames received whose N(S) does not equal 
  13358. the receive state variable V(R) will be discarded. 
  13359. .ce
  13360. .parag
  13361. .ce
  13362. An N(S) sequence error exception condition occurs in the receiver when 
  13363. an I\ frame received contains an N(S) which is not equal to the receive 
  13364. state 
  13365. .ce
  13366. variable V(R) at the receiver. The receiver does not acknowledge (increment 
  13367. its receive state variable) the I\ frame causing the sequence error, or 
  13368. any I\ frame which may follow, until an I\ frame with the correct N(S) 
  13369. is received. 
  13370. .ce
  13371. .parag
  13372. .ce
  13373.  
  13374. .ce
  13375. A DCE or DTE which receives one or more valid I frames having sequence 
  13376. errors or subsequent supervisory frames (RR, RNR and REJ) shall accept 
  13377. the 
  13378. .ce
  13379. control information contained in the N(R) field and the P or F bit to perform 
  13380. data link control functions; e.g.\ to receive acknowledgement of previously 
  13381. .ce
  13382. transmitted I\ frames and to cause the DCE or DTE to respond (P bit set to 1).
  13383. .ce
  13384. .parag
  13385. .ce
  13386.  
  13387. .ce
  13388. The means specified in \(sc\(sc\ 2.3.5.2.1 and 2.3.5.2.2 shall be available 
  13389. for initiating the retransmission of lost or errored I\ frames following 
  13390. the 
  13391. .ce
  13392. occurrence of an N(S) sequence error condition.
  13393. .ce
  13394. .parag
  13395. .ce
  13396. 2.3.5.2.1
  13397. .ce
  13398. \fIREJ recovery\fR 
  13399. .ce
  13400. .parag
  13401. .ce
  13402. The REJ frame is used by a receiving DCE or DTE to initiate a
  13403. .ce
  13404. recovery (retransmission) following the detection of an N(S) sequence error.
  13405. .ce
  13406. .parag
  13407. .ce
  13408.  
  13409. .ce
  13410. With respect to each direction of transmission on the data link, only one 
  13411. \*Qsent REJ\*U exception condition from a DCE or DTE, to a DTE or DCE, 
  13412. is 
  13413. .ce
  13414. established at a time. A \*Qsent REJ\*U exception condition is cleared when the
  13415. .ce
  13416. requested I\ frame is received.
  13417. .ce
  13418. .parag
  13419. .ce
  13420.  
  13421. .ce
  13422. A DCE or DTE receiving a REJ frame initiates sequential
  13423. .ce
  13424. (re\(hy)transmission of I\ frames starting with the I\ frame indicated 
  13425. by the N(R) contained in the REJ frame. The retransmitted frames may contain 
  13426. an N(R) and a P bit that are updated from, and therefore different from, 
  13427. the ones contained in the originally transmitted I\ frames. 
  13428. .ce
  13429. .parag
  13430. .ce
  13431. 2.3.5.2.2
  13432. .ce
  13433. \fITime\(hyout recovery\fR 
  13434. .ce
  13435. .parag
  13436. .ce
  13437. If a DCE or DTE, due to a transmission error, does not receive (or receives 
  13438. and discards) a single I\ frame or the last I\ frame(s) in a sequence of 
  13439. I\ frames, it will not detect an N(S) sequence error condition and, therefore, 
  13440. will not transmit a REJ frame. The DTE or DCE which transmitted the 
  13441. .ce
  13442. unacknowledged I\ frame(s) shall, following the completion of a system 
  13443. specified time\(hyout period (see \(sc\(sc\ 2.4.5.1 and 2.4.5.9 below), 
  13444. take appropriate recovery action to determine at which I\ frame retransmission 
  13445. must begin. The 
  13446. .ce
  13447. retransmitted frame(s) may contain an N(R) and a P bit that is updated from,
  13448. .ce
  13449. and therefore different from, the ones contained in the originally transmitted 
  13450. frame(s). 
  13451. .ce
  13452. .parag
  13453. .ce
  13454. 2.3.5.3
  13455. .ce
  13456. \fIInvalid frame\fR 
  13457. .ce
  13458. \fI condition\fR 
  13459. .ce
  13460. .parag
  13461. .ce
  13462. Any frame which is invalid will be discarded, and no action is
  13463. .ce
  13464. taken as the result of that frame. An invalid frame is defined as one
  13465. .ce
  13466. which:
  13467. .ce
  13468. .parag
  13469. .ce
  13470. a)
  13471. .ce
  13472. is not properly bounded by two flags;
  13473. .ce
  13474. .parag
  13475. .ce
  13476. b)
  13477. .ce
  13478. in basic (modulo 8) operation, contains fewer than 32 bits
  13479. .ce
  13480. between flags; in extended (modulo\ 128) operation, contains
  13481. .ce
  13482. fewer than 40\ bits between flags of frames that contain sequence
  13483. .ce
  13484. numbers or 32\ bits between flags of frames that do not contain
  13485. .ce
  13486. sequence numbers;
  13487. .ce
  13488. .parag
  13489. .ce
  13490. c)
  13491. .ce
  13492. contains a Frame Check Sequence (FCS) error; or
  13493. .ce
  13494. .parag
  13495. .ce
  13496. d)
  13497. .ce
  13498. contains an address other than A or B (for single link
  13499. .ce
  13500. operation) or other than C or D (for multilink operation).
  13501. .ce
  13502. .parag
  13503. .ce
  13504.  
  13505. .ce
  13506. For those networks that are octet aligned, a detection of
  13507. .ce
  13508. non\(hyoctet alignment may be made at the Data Link Layer by adding a frame
  13509. .ce
  13510. validity check that requires the number of bits between the opening flag and
  13511. .ce
  13512. the closing flag, excluding bits inserted for transparency, to be an integral 
  13513. number of octets in length, or the frame is considered invalid. 
  13514. .ce
  13515. .parag
  13516. .ce
  13517. 2.3.5.4
  13518. .ce
  13519. \fIFrame rejection\fR 
  13520. .ce
  13521. \fI condition\fR 
  13522. .ce
  13523. .parag
  13524. .ce
  13525. A frame rejection condition is established upon the receipt of an error\(hyfree 
  13526. frame with one of the conditions listed in \(sc\ 2.3.4.9 above. 
  13527. .ce
  13528. .parag
  13529. .ce
  13530.  
  13531. .ce
  13532. At the DCE or DTE, this frame rejection exception condition is
  13533. .ce
  13534. reported by an FRMR response for appropriate DTE or DCE action, respectively. 
  13535. Once a DCE has established such an exception condition, no additional I\ 
  13536. frames are accepted until the condition is reset by the DTE, except for 
  13537. examination of the P bit. The FRMR response may be repeated at each opportunity, 
  13538. as specified in \(sc\ 2.4.7.3, until recovery is effected by the DTE, or 
  13539. until the DCE initiates its own recovery in case the DTE does not respond. 
  13540. .ce
  13541. .parag
  13542. .ce
  13543. 2.3.5.5
  13544. .ce
  13545. \fIExcessive idle channel state condition on incoming\fR 
  13546. .ce
  13547.  
  13548. .ce
  13549. \fIchannel\fR 
  13550. .ce
  13551. .parag
  13552. .ce
  13553. Upon detection of an idle channel state condition (see \(sc\ 2.2.12.2 above) 
  13554. on the incoming channel, the DCE shall wait for a period\ T3 (see 
  13555. .ce
  13556. \(sc\ 2.4.8.3 below) without taking any specific action, waiting for detection 
  13557. of a return to the active channel state (i.e.,\ detection of at least one 
  13558. flag 
  13559. .ce
  13560. sequence). After the period\ T3, the DCE shall notify the higher layer 
  13561. (e.g.\ the Packet Layer or the MLP) of the excessive idle channel state 
  13562. condition, but 
  13563. .ce
  13564. shall not take any action that would preclude the DTE from establishing the
  13565. .ce
  13566. data link by normal data link set\(hyup procedures.
  13567. .ce
  13568. .parag
  13569. .ce
  13570. \fINote\fR 
  13571. .ce
  13572. \ \(em\ Other actions to be taken by the DCE at the Data Link Layer upon 
  13573. expiration of period\ T3 is a subject for further study. 
  13574. .ce
  13575. .parag
  13576. .ce
  13577.  
  13578. .ce
  13579. 2.4
  13580. .ce
  13581. \fIDescription of the \fR 
  13582. .ce
  13583. \fILAPB procedure\fR 
  13584. .ce
  13585. .parag
  13586. .ce
  13587. 2.4.1
  13588. .ce
  13589. \fILAPB basic and extended modes of operation\fR 
  13590. .ce
  13591. .parag
  13592. .ce
  13593. In accordance with the system choice made by the DTE at
  13594. .ce
  13595. subscription time, the DCE will either support modulo\ 8 (basic) operation or
  13596. .ce
  13597. will support modulo\ 128 (extended) operation. Changing from basic operation 
  13598. to extended operation, or vice versa, in the DCE requires resubscription 
  13599. by the 
  13600. .ce
  13601. DTE for the desired service, and is not supported dynamically.
  13602. .ce
  13603. .parag
  13604. .ce
  13605. Table 5/X.25 indicates the command and response control field formats used 
  13606. with the basic (modulo\ 8) service. The mode\(hysetting command employed 
  13607. to 
  13608. .ce
  13609. initialize (set up) or reset the basic mode is the SABM command. Table 
  13610. 6/X.25 indicates the command and response control field formats used with 
  13611. the extended (modulo\ 128) service. The mode\(hysetting command employed 
  13612. to initialize (set up) or reset the extended mode is the SABME command. 
  13613. .ce
  13614. .parag
  13615. .ce
  13616. 2.4.2
  13617. .ce
  13618. \fILAPB procedure for addressing\fR 
  13619. .ce
  13620. .parag
  13621. .ce
  13622. The address field identifies a frame as either a command or a
  13623. .ce
  13624. response. A command frame contains the address of the DCE or DTE to which 
  13625. the command is being sent. A response frame contains the address of the 
  13626. DCE or DTE sending the frame. 
  13627. .ce
  13628. .parag
  13629. .ce
  13630. In order to allow differentiation between single link operation and
  13631. .ce
  13632. the optional multilink operation for diagnostic and/or maintenance reasons,
  13633. .ce
  13634. different address pair encodings are assigned to data links operating with
  13635. .ce
  13636. multilink procedure compared to data links operating with the single link
  13637. .ce
  13638. procedure.
  13639. .ce
  13640. .parag
  13641. .ce
  13642. Frames containing commands transferred from the DCE to the DTE will
  13643. .ce
  13644. contain the address\ A for the single link operation and address\ C for the
  13645. .ce
  13646. multilink operation.
  13647. .ce
  13648. .parag
  13649. .ce
  13650. Frames containing responses transferred from the DCE to the DTE will contain 
  13651. the address\ B for the single link operation and address\ D for the 
  13652. .ce
  13653. multilink operation.
  13654. .ce
  13655. .parag
  13656. .ce
  13657.  
  13658. .ce
  13659. Frames containing commands transferred from the DTE to the DCE shall contain 
  13660. the address\ B for the single link operation and address\ D for the 
  13661. .ce
  13662. multilink operation.
  13663. .ce
  13664. .parag
  13665. .ce
  13666. Frames containing responses transferred from the DTE to the DCE shall contain 
  13667. the address\ A for the single link operation and address\ C for the 
  13668. .ce
  13669. multilink operation.
  13670. .ce
  13671. .parag
  13672. .ce
  13673. These addresses are coded as follows:
  13674. .ce
  13675. .parag
  13676. .ce
  13677. Address
  13678. .ce
  13679. 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8
  13680. .ce
  13681. .parag
  13682. .ce
  13683. Single link operation
  13684. .ce
  13685. \ \ A
  13686. .ce
  13687. 1\ 1\ 0\ 0\ 0\ 0\ 0\ 0
  13688. .ce
  13689. .line
  13690. .ce
  13691. \ \ B
  13692. .ce
  13693. 1\ 0\ 0\ 0\ 0\ 0\ 0\ 0
  13694. .ce
  13695. .parag
  13696. .ce
  13697. Multilink operation
  13698. .ce
  13699. \ \ C
  13700. .ce
  13701. 1\ 1\ 1\ 1\ 0\ 0\ 0\ 0
  13702. .ce
  13703. .line
  13704. .ce
  13705. \ \ D
  13706. .ce
  13707. 1\ 1\ 1\ 0\ 0\ 0\ 0\ 0
  13708. .ce
  13709. .parag
  13710. .ce
  13711. \fINote\fR 
  13712. .ce
  13713. \ \(em\ The DCE will discard all frames received with an address other 
  13714. than\ A or\ B (single link operation), or\ C or\ D (multilink operation). 
  13715. .ce
  13716. .parag
  13717. .ce
  13718. 2.4.3
  13719. .ce
  13720. \fILAPB procedure for the use of the P/F bit\fR 
  13721. .ce
  13722. .parag
  13723. .ce
  13724. The DCE or DTE receiving an SABM/SABME, DISC, supervisory command or I\ 
  13725. frame with the P\ bit set to\ 1 will set the F\ bit to\ 1 in the next response 
  13726. frame it transmits. 
  13727. .ce
  13728. .parag
  13729. .ce
  13730. The response frame returned by the DCE to an SABM/SABME or DISC
  13731. .ce
  13732. command with the P\ bit set to\ 1 will be a UA or DM response with the 
  13733. F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  13734. with the P\ bit set to\ 1, received during the information transfer phase, 
  13735. will be an RR, REJ, RNR or FRMR response with the F\ bit set to\ 1. The 
  13736. response frame returned by the 
  13737. .ce
  13738. DCE to a supervisory command with the P\ bit set to\ 1, received during the
  13739. .ce
  13740. information transfer phase, will be an RR, REJ, RNR or FRMR response with 
  13741. the F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  13742. or 
  13743. .ce
  13744. supervisory frame with the P\ bit set to\ 1, received during the disconnected
  13745. .ce
  13746. phase, will be a DM response with the F\ bit set to\ 1.
  13747. .ce
  13748. .parag
  13749. .ce
  13750. The P bit may be used by the DCE in conjunction with the timer
  13751. .ce
  13752. recovery condition (see \(sc\ 2.4.5.9 below).
  13753. .ce
  13754. .parag
  13755. .ce
  13756. \fINote\fR 
  13757. .ce
  13758. \ \(em\ Other use of the P bit by the DCE is a subject for further
  13759. .ce
  13760. study.
  13761. .ce
  13762. .parag
  13763. .ce
  13764. 2.4.4
  13765. .ce
  13766. \fILAPB procedure for data link set\(hyup and disconnection\fR 
  13767. .ce
  13768. .parag
  13769. .ce
  13770.  
  13771. .ce
  13772. 2.4.4.1
  13773. .ce
  13774. \fIData link set\(hyup\fR 
  13775. .ce
  13776. .parag
  13777. .ce
  13778. The DCE will indicate that it is able to set up the data link by
  13779. .ce
  13780. transmitting contiguous flags (active channel state).
  13781. .ce
  13782. .parag
  13783. .ce
  13784. Either the DTE or the DCE may initiate data link set\(hyup. Prior to
  13785. .ce
  13786. initiation of data link set\(hyup, either the DCE or the DTE may initiate data
  13787. .ce
  13788. link
  13789. .ce
  13790. disconnection (see \(sc\ 2.4.4.3) for the purpose of insuring that the 
  13791. DCE and the DTE are in the same phase. The DCE may also transmit an unsolicited 
  13792. DM response to request the DTE to initiate data link set\(hyup. 
  13793. .ce
  13794. .parag
  13795. .ce
  13796. The DTE shall initiate data link set\(hyup by transmitting an SABM/SABME 
  13797. command to the DCE. If, upon receipt of the SABM/SABME command correctly, 
  13798. the DCE determines that it can enter the information transfer phase, it 
  13799. will return a UA response to the DTE, will reset its send and receive state 
  13800. variables V(S) and V(R) to zero, and will consider that the data link is 
  13801. set up. If, upon 
  13802. .ce
  13803. receipt
  13804. .ce
  13805. of the SABM/SABME command correctly, the DCE determines that it cannot enter
  13806. .ce
  13807. the information transfer phase, it will return a DM response to the DTE as a
  13808. .ce
  13809. denial to the data link set\(hyup initialization and will consider that the
  13810. .ce
  13811. data link is
  13812. .ce
  13813. \fInot\fR 
  13814. .ce
  13815.  set up. In order to avoid misinterpretation of the DM response received, 
  13816. it is suggested that the DTE always sends its SABM/SABME command with the 
  13817. P\ bit set to\ 1. Otherwise, it is not possible to differentiate a DM response 
  13818. intended as a denial to data link set\(hyup from a DM response that is 
  13819. issued in a separate unsolicited sense as a request for a mode\(hysetting 
  13820. command (as described 
  13821. .ce
  13822. in\ \(sc\ 2.4.4.4.2).
  13823. .ce
  13824. .parag
  13825. .ce
  13826. The DCE will initiate data link set\(hyup by transmitting an SABM/SABME 
  13827. command to the DTE and starting its Timer\ T1 in order to determine when 
  13828. too 
  13829. .ce
  13830. much time has elapsed waiting for a reply (see \(sc\ 2.4.8.1 below). Upon 
  13831. reception of a UA response from the DTE, the DCE will reset its send and 
  13832. receive state 
  13833. .ce
  13834. variables\ V(S) and\ V(R) to zero, will stop its Timer\ T1, and will consider 
  13835. that the data link is set up. Upon reception of a DM response from the 
  13836. DTE as a 
  13837. .ce
  13838. denial
  13839. .ce
  13840. to the data link set\(hyup initialization, the DCE will stop its Timer\ 
  13841. T1 and will consider that the data link is \fInot\fR 
  13842. .ce
  13843. set up.
  13844. .ce
  13845. .parag
  13846. .ce
  13847.  
  13848. .ce
  13849. The DCE, having sent the SABM/SABME command, will ignore and discard any 
  13850. frames except an SABM/SABME or DISC command, or a UA or DM response 
  13851. .ce
  13852. received from the DTE. The receipt of an SABM/SABME or DISC command from the
  13853. .ce
  13854. DTE will result in a collision situation that is resolved per \(sc\ 2.4.4.5 
  13855. below. Frames other than the UA and DM responses sent in response to a 
  13856. received 
  13857. .ce
  13858. SABM/SABME or DISC command will be sent only after the data link is set 
  13859. up and if no outstanding SABM/SABME command exists. 
  13860. .ce
  13861. .parag
  13862. .ce
  13863. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  13864. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  13865. .ce
  13866. resend the SABM/SABME command and will restart Timer\ T1. After transmission 
  13867. of the SABM/SABME command N2 times by the DCE, appropriate higher layer 
  13868. recovery action will be initiated. The value of N2 is defined in \(sc\ 
  13869. 2.4.8.4 below. 
  13870. .ce
  13871. .parag
  13872. .ce
  13873. 2.4.4.2
  13874. .ce
  13875. \fIInformation transfer phase\fR 
  13876. .ce
  13877. .parag
  13878. .ce
  13879. After having transmitted the UA response to the SABM/SABME command or having 
  13880. received the UA response to a transmitted SABM/SABME command, the DCE will 
  13881. accept and transmit I and supervisory frames according to the procedures 
  13882. described in \(sc\ 2.4.5 below. 
  13883. .ce
  13884. .parag
  13885. .ce
  13886.  
  13887. .ce
  13888. When receiving the SABM/SABME command while in the information
  13889. .ce
  13890. transfer phase, the DCE will conform to the data link resetting procedure
  13891. .ce
  13892. described in \(sc\ 2.4.7 below.
  13893. .ce
  13894. .parag
  13895. .ce
  13896. 2.4.4.3
  13897. .ce
  13898. \fIData link disconnection\fR 
  13899. .ce
  13900. .parag
  13901. .ce
  13902. The DTE shall initiate a disconnect of the data link by
  13903. .ce
  13904. transmitting a DISC command to the DCE. On correctly receiving a DISC command 
  13905. in the information transfer phase, the DCE will send a UA response and 
  13906. enter 
  13907. .ce
  13908. the disconnected phase. On correctly receiving a DISC command in the
  13909. .ce
  13910. disconnected phase, the DCE will send a DM response and remain in the
  13911. .ce
  13912. disconnected phase. In order to avoid misinterpretation of the DM response
  13913. .ce
  13914. received, it is suggested that the DTE always sends its DISC command with 
  13915. the P\ bit set to\ 1. Otherwise, it is not possible to differentiate a 
  13916. DM response 
  13917. .ce
  13918. intended as an indication that the DCE is already in the disconnected phase
  13919. .ce
  13920. from a DM response that is issued in a separate unsolicited sense as a 
  13921. request for a mode\(hysetting command (as described in \(sc\ 2.4.4.4.2). 
  13922. .ce
  13923. .parag
  13924. .ce
  13925.  
  13926. .ce
  13927. The DCE will initiate a disconnect of the data link by transmitting a DISC 
  13928. command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 below). 
  13929. Upon reception of an UA response from the DTE, the DCE will stop its Timer\ 
  13930. T1 and 
  13931. .ce
  13932. will enter the disconnected phase. Upon reception of a DM response from 
  13933. the DTE as an indication that the DTE was already in the disconnected phase, 
  13934. the DCE 
  13935. .ce
  13936. will stop its Timer\ T1 and will enter the disconnected phase.
  13937. .ce
  13938. .parag
  13939. .ce
  13940. The DCE, having sent the DISC command, will ignore and discard any
  13941. .ce
  13942. frames except an SABM/SABME or DISC command, or a UA or DM response received
  13943. .ce
  13944. from the DTE. The receipt of an SABM/SABME or DISC command from the DTE will
  13945. .ce
  13946. result in a collision situation that is resolved per \(sc\ 2.4.4.5 below.
  13947. .ce
  13948. .parag
  13949. .ce
  13950.  
  13951. .ce
  13952. After the DCE sends the DISC command, if a UA or DM response is not
  13953. .ce
  13954. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  13955. resend the DISC command and will restart Timer\ T1. After transmission 
  13956. of the DISC 
  13957. .ce
  13958. command N2 times by the DCE, appropriate higher layer recovery action will 
  13959. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  13960. .ce
  13961. .parag
  13962. .ce
  13963. 2.4.4.4
  13964. .ce
  13965. \fIDisconnected phase\fR 
  13966. .ce
  13967. .parag
  13968. .ce
  13969. 2.4.4.4.1
  13970. .ce
  13971. After having received a DISC command from the DTE and
  13972. .ce
  13973. returned a UA response to the DTE, or having received the UA response to a
  13974. .ce
  13975. transmitted DISC command, the DCE will enter the disconnected phase.
  13976. .ce
  13977. .parag
  13978. .ce
  13979. In the disconnected phase, the DCE may initiate data link set\(hyup. In 
  13980. the disconnected phase, the DCE will react to the receipt of an SABM/SABME 
  13981. command as described in \(sc\ 2.4.4.1 above and will transmit a DM response 
  13982. in 
  13983. .ce
  13984. answer to a received DISC command. When receiving any other command (defined, 
  13985. or undefined or not implemented) with the P\ bit set to\ 1, the DCE will 
  13986. transmit a DM response with the F\ bit set to\ 1. Other frames received 
  13987. in the 
  13988. .ce
  13989. disconnected phase will be ignored by the DCE.
  13990. .ce
  13991. .parag
  13992. .ce
  13993. 2.4.4.4.2
  13994. .ce
  13995. When the DCE enters the disconnected phase after
  13996. .ce
  13997. detecting error conditions as listed in \(sc\ 2.4.6 below, or after an internal
  13998. .ce
  13999. malfunction, it may indicate this by sending a DM response rather than 
  14000. a DISC command. In these cases, the DCE will transmit a DM response and 
  14001. start its 
  14002. .ce
  14003. Timer\ T1 (see \(sc\ 2.4.8.1 below).
  14004. .ce
  14005. .parag
  14006. .ce
  14007. If Timer T1 runs out before the reception of an SABM/SABME or DISC command 
  14008. from the DTE, the DCE will retransmit the DM response and restart 
  14009. .ce
  14010. Timer\ T1. After transmission of the DM response N2 times, the DCE will 
  14011. remain in the disconnected phase and appropriate recovery actions will 
  14012. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  14013. .ce
  14014. .parag
  14015. .ce
  14016. Alternatively, after an internal malfunction, the DCE may either
  14017. .ce
  14018. initiate a data link resetting procedure (see \(sc\ 2.4.7 below) or disconnect 
  14019. the data link (see \(sc\ 2.4.4.3 above) prior to initiating a data link 
  14020. set\(hyup 
  14021. .ce
  14022. procedure (see \(sc\ 2.4.4.1 above).
  14023. .ce
  14024. .parag
  14025. .ce
  14026. 2.4.4.5
  14027. .ce
  14028. \fICollision of unnumbered commands\fR 
  14029. .ce
  14030. .parag
  14031. .ce
  14032. Collision situations shall be resolved in the following way:
  14033. .ce
  14034. .parag
  14035. .ce
  14036. 2.4.4.5.1
  14037. .ce
  14038. If the sent and received unnumbered commands are the
  14039. .ce
  14040. same, the DCE and the DTE shall each send the UA response at the earliest
  14041. .ce
  14042. possible opportunity. The DCE shall enter the indicated phase either,
  14043. .ce
  14044. .parag
  14045. .ce
  14046.  
  14047. .ce
  14048. 1)
  14049. .ce
  14050. after receiving the UA response,
  14051. .ce
  14052. .parag
  14053. .ce
  14054. 2)
  14055. .ce
  14056. after sending the UA response, or
  14057. .ce
  14058. .parag
  14059. .ce
  14060. 3)
  14061. .ce
  14062. after timing out waiting for the UA response having sent a
  14063. .ce
  14064. UA response.
  14065. .ce
  14066. .parag
  14067. .ce
  14068. In the case of 2) above, the DCE will accept a subsequent UA
  14069. .ce
  14070. response to the mode\(hysetting command it issued without causing an exception
  14071. .ce
  14072. condition if received within the time\(hyout interval.
  14073. .ce
  14074. .parag
  14075. .ce
  14076.  
  14077. .ce
  14078. 2.4.4.5.2
  14079. .ce
  14080. If the sent and received unnumbered commands are
  14081. .ce
  14082. different, the DCE and the DTE shall each enter the disconnected phase and
  14083. .ce
  14084. issue a DM response at the earliest possible opportunity.
  14085. .ce
  14086. .parag
  14087. .ce
  14088. 2.4.4.6
  14089. .ce
  14090. \fICollision of DM response with SABM/SABME or DISC\fR 
  14091. .ce
  14092.  
  14093. .ce
  14094. \fIcommand\fR 
  14095. .ce
  14096. .parag
  14097. .ce
  14098. When a DM response is issued by the DCE or DTE as an unsolicited
  14099. .ce
  14100. response to request the DTE or DCE, respectively, to issue a mode\(hysetting
  14101. .ce
  14102. command as described in \(sc\ 2.4.4.4, a collision between an SABM/SABME 
  14103. or DISC 
  14104. .ce
  14105. command and the unsolicited DM response may occur. In order to avoid
  14106. .ce
  14107. misinterpretation of the DM response received, the DTE always sends its
  14108. .ce
  14109. SABM/SABME or DISC command with the P\ bit set to\ 1.
  14110. .ce
  14111. .parag
  14112. .ce
  14113. 2.4.4.7
  14114. .ce
  14115. \fICollision of DM responses\fR 
  14116. .ce
  14117. .parag
  14118. .ce
  14119. A contention situation may occur when both the DCE and the DTE
  14120. .ce
  14121. issue a DM response to request a mode\(hysetting command. In this case, the DTE
  14122. .ce
  14123. will issue an SABM/SABME command to resolve the contention situation.
  14124. .ce
  14125. .parag
  14126. .ce
  14127.  
  14128. .ce
  14129. 2.4.5
  14130. .ce
  14131. \fILAPB procedures for information transfer\fR 
  14132. .ce
  14133. .parag
  14134. .ce
  14135. The procedures which apply to the transmission of I\ frames in each direction 
  14136. during the information transfer phase are described below. 
  14137. .ce
  14138. .parag
  14139. .ce
  14140. In the following, \*Qnumber one higher\*U is in reference to a
  14141. .ce
  14142. continuously repeated sequence series, i.e., 7 is 1\ higher than 6 and 0 is
  14143. .ce
  14144. 1\ higher than 7 for modulo\ 8 series, and 127 is 1\ higher than 126 and 0 is
  14145. .ce
  14146. 1\ higher than 127 for modulo\ 128 series.
  14147. .ce
  14148. .parag
  14149. .ce
  14150. 2.4.5.1
  14151. .ce
  14152. \fISending I frames\fR 
  14153. .ce
  14154. .parag
  14155. .ce
  14156. When the DCE has an I frame to transmit (i.e. an I frame not
  14157. .ce
  14158. already transmitted, or having to be retransmitted as described in \(sc\ 
  14159. 2.4.5.6 
  14160. .ce
  14161. below), it will transmit it with an N(S) equal to its current send state
  14162. .ce
  14163. variable V(S), and an N(R) equal to its current receive state variable 
  14164. V(R). At the end of the transmission of the I\ frame, the DCE will increment 
  14165. its send 
  14166. .ce
  14167. state variable V(S) by\ 1.
  14168. .ce
  14169. .parag
  14170. .ce
  14171. If Timer T1 is not running at the time of transmission of an I frame, it 
  14172. will be started. 
  14173. .ce
  14174. .parag
  14175. .ce
  14176. If the send state variable V(S) is equal to the last value of N(R)
  14177. .ce
  14178. received plus \fIk\fR 
  14179. .ce
  14180. (where \fIk\fR 
  14181. .ce
  14182. is the maximum number of outstanding I\ frames \(em
  14183. .ce
  14184. see \(sc\ 2.4.8.6 below), the DCE will not transmit any new I\ frames, but may
  14185. .ce
  14186. retransmit an I\ frame as described in \(sc\(sc\ 2.4.5.6 or 2.4.5.9 below.
  14187. .ce
  14188. .parag
  14189. .ce
  14190. When the DCE is in the busy condition, it may still transmit I frames, 
  14191. provided that the DTE is not busy. When the DCE is in the frame rejection 
  14192. .ce
  14193. condition, it will stop transmitting I\ frames.
  14194. .ce
  14195. .parag
  14196. .ce
  14197. 2.4.5.2
  14198. .ce
  14199. \fIReceiving an I frame\fR 
  14200. .ce
  14201. .parag
  14202. .ce
  14203. 2.4.5.2.1
  14204. .ce
  14205. When the DCE is not in a busy condition and receives a valid I\ frame whose 
  14206. send sequence number N(S) is equal to the DCE receive state 
  14207. .ce
  14208. variable V(R), the DCE will accept the information field of this frame,
  14209. .ce
  14210. increment by one its receive state variable V(R), and act as follows:
  14211. .ce
  14212. .parag
  14213. .ce
  14214.  
  14215. .ce
  14216. a)
  14217. .ce
  14218. If the DCE is still not in a busy condition:
  14219. .ce
  14220. .parag
  14221. .ce
  14222. i)
  14223. .ce
  14224. If an I frame is available for transmission by the
  14225. .ce
  14226. DCE, it may act as in \(sc\ 2.4.5.1 above and acknowledge
  14227. .ce
  14228. the received I frame by setting N(R) in the control field
  14229. .ce
  14230. of the next transmitted I\ frame to the value of the DCE
  14231. .ce
  14232. receive state variable V(R). Alternatively, the DCE may
  14233. .ce
  14234. acknowledge the received I\ frame by transmitting an RR
  14235. .ce
  14236. frame with the N(R) equal to the value of the DCE receive
  14237. .ce
  14238. state variable V(R).
  14239. .ce
  14240. .parag
  14241. .ce
  14242. ii)
  14243. .ce
  14244. If no I frame is available for transmission by the
  14245. .ce
  14246. DCE, it will transmit an RR frame with N(R) equal to the
  14247. .ce
  14248. value of the DCE receive state variable V(R).
  14249. .ce
  14250. .parag
  14251. .ce
  14252.  
  14253. .ce
  14254. b)
  14255. .ce
  14256. If the DCE is now in a busy condition, it will transmit an
  14257. .ce
  14258. RNR frame with N(R) equal to the value of the DCE receive
  14259. .ce
  14260. state variable V(R) (see \(sc\ 2.4.5.8).
  14261. .ce
  14262. .parag
  14263. .ce
  14264.  
  14265. .ce
  14266. 2.4.5.2.2
  14267. .ce
  14268. When the DCE is in a busy condition, it may ignore the
  14269. .ce
  14270. information field contained in any received I\ frame.
  14271. .ce
  14272. .parag
  14273. .ce
  14274. 2.4.5.3
  14275. .ce
  14276. \fIReception of invalid frames\fR 
  14277. .ce
  14278. .parag
  14279. .ce
  14280. When the DCE receives an invalid frame (see \(sc\ 2.3.5.3), this frame 
  14281. will be discarded. 
  14282. .ce
  14283. .parag
  14284. .ce
  14285. 2.4.5.4
  14286. .ce
  14287. \fIReception of out\(hyof\(hysequence I frames\fR 
  14288. .ce
  14289. .parag
  14290. .ce
  14291. When the DCE receives a valid I frame whose send sequence number
  14292. .ce
  14293. N(S) is incorrect, i.e.,\ not equal to the current DCE receive state variable
  14294. .ce
  14295. V(R), it will discard the information field of the I\ frame and transmit 
  14296. an REJ frame with the N(R) set to one higher than the N(S) of the last 
  14297. correctly 
  14298. .ce
  14299. received I\ frame. The REJ frame will be a command frame with the P\ bit 
  14300. set to\ 1 if an acknowledged transfer of the retransmission request is 
  14301. required; 
  14302. .ce
  14303. otherwise the REJ frame may be either a command or a response frame. The DCE
  14304. .ce
  14305. will then discard the information field of all I\ frames received until the
  14306. .ce
  14307. expected I\ frame is correctly received. When receiving the expected I\ frame,
  14308. .ce
  14309. the DCE will then acknowledge the I\ frame as described in \(sc\ 2.4.5.2 
  14310. above. The DCE will use the N(R) and P\ bit information in the discarded 
  14311. I\ frames as 
  14312. .ce
  14313. described in \(sc\ 2.3.5.2 above.
  14314. .ce
  14315. .parag
  14316. .ce
  14317. 2.4.5.5
  14318. .ce
  14319. \fIReceiving acknowledgement\fR 
  14320. .ce
  14321. .parag
  14322. .ce
  14323. When correctly receiving an I frame or a supervisory frame (RR, RNR or 
  14324. REJ), even in the busy condition, the DCE will consider the N(R) contained 
  14325. in this frame as an acknowledgement for all I\ frames it has transmitted 
  14326. with an N(S) up to and including the received N(R)\(em1. The DCE will stop 
  14327. Timer\ T1 when it correctly receives an I\ frame or a supervisory frame 
  14328. with the N(R) higher 
  14329. .ce
  14330. than the last received N(R) (actually acknowledging some I\ frames), or 
  14331. an REJ frame with an N(R) equal to the last received N(R). 
  14332. .ce
  14333. .parag
  14334. .ce
  14335.  
  14336. .ce
  14337. If Timer T1 has been stopped by the receipt on an I, RR or RNR frame, and 
  14338. if there are outstanding I\ frames still unacknowledged, the DCE will 
  14339. .ce
  14340. restart Timer\ T1. If Timer\ T1 then runs out, the DCE will follow the 
  14341. recovery procedure (\(sc\ 2.4.5.9 below) with respect to the unacknowledged 
  14342. I\ frames. If 
  14343. .ce
  14344. Timer\ T1 has been stopped by the receipt of an REJ frame, the DCE will 
  14345. follow the retransmission procedures in \(sc\ 2.4.5.6 below. 
  14346. .ce
  14347. .parag
  14348. .ce
  14349. 2.4.5.6
  14350. .ce
  14351. \fIReceiving an REJ frame\fR 
  14352. .ce
  14353. .parag
  14354. .ce
  14355. When receiving an REJ frame, the DCE will set its send state
  14356. .ce
  14357. variable V(S) to the N(R) received in the REJ control field. It will transmit 
  14358. the corresponding I\ frame as soon as it is available or retransmit it 
  14359. in 
  14360. .ce
  14361. accordance with the procedures described in \(sc\ 2.4.5.1 above. (Re)transmission 
  14362. will conform to the following procedure: 
  14363. .ce
  14364. .parag
  14365. .ce
  14366. i)
  14367. .ce
  14368. if the DCE is transmitting a supervisory command or response
  14369. .ce
  14370. when it receives the REJ frame, it will complete that
  14371. .ce
  14372. transmission before commencing transmission of the requested
  14373. .ce
  14374. I\ frame;
  14375. .ce
  14376. .parag
  14377. .ce
  14378.  
  14379. .ce
  14380. ii)
  14381. .ce
  14382. if the DCE is transmitting an unnumbered command or
  14383. .ce
  14384. response when it receives the REJ frame, it will ignore the
  14385. .ce
  14386. request for retransmission;
  14387. .ce
  14388. .parag
  14389. .ce
  14390. iii)
  14391. .ce
  14392. if the DCE is transmitting an I frame when the REJ frame
  14393. .ce
  14394. is received, it may abort the I\ frame and commence transmission
  14395. .ce
  14396. of the requested I\ frame immediately after abortion;
  14397. .ce
  14398. .parag
  14399. .ce
  14400. iv)
  14401. .ce
  14402. if the DCE is not transmitting any frame when the REJ frame
  14403. .ce
  14404. is received, it will commence transmission of the requested
  14405. .ce
  14406. I\ frame immediately.
  14407. .ce
  14408. .parag
  14409. .ce
  14410. In all cases, if other unacknowledged I frames had already been
  14411. .ce
  14412. transmitted following the one indicated in the REJ frame, then those I 
  14413. frames will be retransmitted by the DCE following the retransmission of 
  14414. the requested I\ frame. Other I\ frames not yet transmitted may be transmitted 
  14415. following the 
  14416. .ce
  14417. retransmitted I\ frames.
  14418. .ce
  14419. .parag
  14420. .ce
  14421. If the REJ frame was received from the DTE as a command with the P bit 
  14422. set to\ 1, the DCE will transmit an RR, RNR or REJ response with the F 
  14423. bit set to\ 1 before transmitting or retransmitting the corresponding I\ 
  14424. frame. 
  14425. .ce
  14426. .parag
  14427. .ce
  14428. 2.4.5.7
  14429. .ce
  14430. \fIReceiving an RNR frame\fR 
  14431. .ce
  14432. .parag
  14433. .ce
  14434. After receiving an RNR frame whose N(R) acknowledges all frames
  14435. .ce
  14436. previously transmitted, the DCE will stop Timer\ T1 and may then transmit
  14437. .ce
  14438. an I\ frame, with the P\ bit set to\ 0, whose send sequence number is
  14439. .ce
  14440. equal to the N(R) indicated in the RNR frame, restarting Timer\ T1 as it 
  14441. does. After receiving an RNR frame whose N(R) indicates a previously transmitted 
  14442. .ce
  14443. frame, the DCE will not transmit or retransmit any I\ frame, Timer\ T1 being
  14444. .ce
  14445. already running. In either case, if the Timer\ T1 runs out before receipt 
  14446. of a busy clearance indication, the DCE will follow the procedure described 
  14447. in 
  14448. .ce
  14449. \(sc\ 2.4.5.9\ below. In any case, the DCE will not transmit any other 
  14450. I\ frames 
  14451. .ce
  14452. before receiving an RR or REJ frame, or before the completion of a link
  14453. .ce
  14454. resetting procedure.
  14455. .ce
  14456. .parag
  14457. .ce
  14458. Alternatively, after receiving an RNR frame, the DCE may wait for a
  14459. .ce
  14460. period of time (e.g.,\ the length of the Timer\ T1) and then transmit a
  14461. .ce
  14462. supervisory command frame (RR, RNR or REJ) with the P\ bit set to\ 1, and 
  14463. start Timer\ T1, in order to determine if there is any change in the receive 
  14464. status of the DTE. The DTE shall respond to the P\ bit set to\ 1 with a 
  14465. supervisory 
  14466. .ce
  14467. response frame (RR, RNR or REJ) with the F\ bit set to\ 1 indicating either
  14468. .ce
  14469. continuance of the busy condition (RNR) or clearance of the busy condition 
  14470. (RR or REJ). Upon receipt of the DTE response, Timer\ T1 is stopped. 
  14471. .ce
  14472. .parag
  14473. .ce
  14474.  
  14475. .ce
  14476. 1)
  14477. .ce
  14478. If the response is the RR or REJ response, the busy
  14479. .ce
  14480. condition is cleared and the DCE may transmit I\ frames beginning
  14481. .ce
  14482. with the I\ frame identified by the N(R) in the received response
  14483. .ce
  14484. frame.
  14485. .ce
  14486. .parag
  14487. .ce
  14488. 2)
  14489. .ce
  14490. If the response is the RNR response, the busy condition
  14491. .ce
  14492. still exists, and the DCE will after a period of time (e.g.\ the
  14493. .ce
  14494. length of Timer\ T1) repeat the enquiry of the DTE receive
  14495. .ce
  14496. status.
  14497. .ce
  14498. .parag
  14499. .ce
  14500. If Timer T1 runs out before a status response is received, the
  14501. .ce
  14502. enquiry process above is repeated. If N2 attempts to get a status response 
  14503. fail (i.e.\ Timer\ T1 runs out N2\ times), the DCE will initiate a data 
  14504. link resetting procedure as described in \(sc\ 2.4.7.2\ below or will transmit 
  14505. a DM response to ask the DTE to initiate a data link set\(hyup procedure 
  14506. as described in \(sc\ 2.4.4.1 and enter the disconnected phase. The value 
  14507. of N2 is defined in \(sc\ 2.4.8.4\ below. 
  14508. .ce
  14509. .parag
  14510. .ce
  14511.  
  14512. .ce
  14513. If, at any time during the enquiry process, an unsolicited RR or REJ frame 
  14514. is received from the DTE, it will be considered to be an indication of 
  14515. .ce
  14516. clearance of the busy condition. Should the unsolicited RR or REJ frame be a
  14517. .ce
  14518. command frame with the P bit set to\ 1, the appropriate response frame 
  14519. with the F\ bit set to 1 must be transmitted before the DCE may resume 
  14520. transmission of 
  14521. .ce
  14522. I\ frames. If Timer\ T1 is running, the DCE will wait for the non\(hybusy 
  14523. response with the F bit set to\ 1 or will wait for Timer\ T1 to run out 
  14524. and then either 
  14525. .ce
  14526. may reinitiate the enquiry process in order to realize a successful P/F bit
  14527. .ce
  14528. exchange or may resume transmission of I frames beginning with the I\ frame
  14529. .ce
  14530. identified by the N(R) in the received RR or REJ frame.
  14531. .ce
  14532. .parag
  14533. .ce
  14534. 2.4.5.8
  14535. .ce
  14536. \fIDCE busy condition\fR 
  14537. .ce
  14538. .parag
  14539. .ce
  14540. When the DCE enters a busy condition, it will transmit an RNR frame at 
  14541. the earliest opportunity. The RNR frame will be a command frame with the 
  14542. P bit set to\ 1 if an acknowledged transfer of the busy condition indication 
  14543. is 
  14544. .ce
  14545. required; otherwise the RNR frame may be either a command or a response 
  14546. frame. While in the busy condition, the DCE will accept and process supervisory 
  14547. .ce
  14548. frames, will accept and process the contents of the N(R) fields of I\ frames,
  14549. .ce
  14550. and will return an RNR response with the F bit set to\ 1 if it receives a
  14551. .ce
  14552. supervisory command or I command frame with the P bit set to\ 1. To clear the
  14553. .ce
  14554. busy condition, the DCE will transmit either an REJ frame or an RR frame, with
  14555. .ce
  14556. N(R) set to the current receive state variable V(R), depending on whether or
  14557. .ce
  14558. not it discarded information fields of correctly received I\ frames. The REJ
  14559. .ce
  14560. frame or the RR frame will be a command frame with the P bit set to\ 1 if an
  14561. .ce
  14562. acknowledged transfer of the busy\(hyto\(hynon\(hybusy transition is required, 
  14563. otherwise the REJ frame or the RR frame may be either a command or a response 
  14564. frame. 
  14565. .ce
  14566. .parag
  14567. .ce
  14568.  
  14569. .ce
  14570. 2.4.5.9
  14571. .ce
  14572. \fIWaiting acknowledgement\fR 
  14573. .ce
  14574. .parag
  14575. .ce
  14576. The DCE maintains an internal transmission attempt variable which is set 
  14577. to\ 0 when the DCE sends a UA response, when the DCE receives a UA 
  14578. .ce
  14579. response or an RNR command or response, or when the DCE correctly receives 
  14580. an I\ frame or supervisory frame with the N(R) higher than the last received 
  14581. N(R) (actually acknowledging some outstanding I\ frames). 
  14582. .ce
  14583. .parag
  14584. .ce
  14585. If Timer T1 runs out waiting for the acknowledgement from the DTE for an 
  14586. I\ frame transmitted, the DCE will enter the timer recovery condition, 
  14587. add 
  14588. .ce
  14589. one to its transmission attempt variable and set an internal variable \fIx\fR 
  14590. .ce
  14591. to
  14592. .ce
  14593. the current value of its send state variable V(S). The DCE will then restart
  14594. .ce
  14595. Timer T1, set its send state variable V(S) to the last value of N(R) received 
  14596. from the DTE and retransmit the corresponding I\ frame with the P bit set 
  14597. to\ 1, or transmit an appropriate supervisory command frame (RR, RNR or 
  14598. REJ) with the P\ bit set to\ 1. 
  14599. .ce
  14600. .parag
  14601. .ce
  14602.  
  14603. .ce
  14604. The timer recovery condition is cleared when the DCE receives a valid supervisory 
  14605. frame with the F\ bit\ set to\ 1. 
  14606. .ce
  14607. .parag
  14608. .ce
  14609. If, while in the timer recovery condition, the DCE correctly receives a 
  14610. supervisory frame with the F bit set to\ 1 and with the N(R) within the 
  14611. range from its current send state variable V(S) to \fIx\fR 
  14612. .ce
  14613. included, it will clear the
  14614. .ce
  14615. timer recovery condition (including stopping Timer\ T1) and set its send 
  14616. state variable V(S) to the value of the received N(R), and may then resume 
  14617. with 
  14618. .ce
  14619. I\ frame transmission or retransmission, as appropriate.
  14620. .ce
  14621. .parag
  14622. .ce
  14623. If, while in the timer recovery condition, the DCE correctly receives an 
  14624. I or supervisory frame with the P/F bit set to\ 0 and with a valid N(R) 
  14625. (see \(sc\ 2.3.4.9), it will not clear the timer recovery condition. The 
  14626. value of the 
  14627. .ce
  14628. received N(R) may be used to update the send state variable V(S). However, 
  14629. the DCE may decide to keep the last transmitted I\ frame in store (even 
  14630. if it is 
  14631. .ce
  14632. acknowledged) in order to be able to retransmit it with the P bit set to\ 
  14633. 1 when Timer\ T1 runs out at a later time. 
  14634. .ce
  14635. .parag
  14636. .ce
  14637.  
  14638. .ce
  14639. If the received supervisory frame with the P/F bit set to\ 0 is an REJ 
  14640. frame with a valid N(R), the DCE may either immediately initiate 
  14641. .ce
  14642. (re)transmission from the value of the send state variable V(S), or it may
  14643. .ce
  14644. ignore the request for retransmission and wait until the supervisory frame 
  14645. with the F bit set to\ 1 is received before initiating (re)transmission 
  14646. of frames 
  14647. .ce
  14648. from the value identified in the N(R) field of the supervisory frame with 
  14649. the F\ bit set to\ 1. In the case of immediate retransmission, in order 
  14650. to prevent 
  14651. .ce
  14652. duplicate retransmissions following the clearance of the timer recovery
  14653. .ce
  14654. condition, the DCE shall inhibit retransmission of a specific I\ frame [same
  14655. .ce
  14656. N(R) in the same numbering cycle] if the DCE has retransmitted that I\ 
  14657. frame as the result of a received REJ frame with the P/F bit set to\ 0. 
  14658. .ce
  14659. .parag
  14660. .ce
  14661. If, while in the timer recovery condition, the DCE receives a REJ
  14662. .ce
  14663. command with the P bit set to\ 1, the DCE will respond immediately with an
  14664. .ce
  14665. appropriate supervisory response with the F bit set to\ 1. The DCE may 
  14666. then use the value of the N(R) in the REJ command to update the send state 
  14667. variable 
  14668. .ce
  14669. V(S), and may either immediately begin (re)transmission from the value N(R)
  14670. .ce
  14671. indicated in the REJ frame or ignore the request for retransmission and wait
  14672. .ce
  14673. until the supervisory frame with the F bit set to\ 1 is received before
  14674. .ce
  14675. initiating (re)transmission of I\ frames from the value identified in the 
  14676. N(R) field of the supervisory frame with the F\ bit set to\ 1. In the case 
  14677. of 
  14678. .ce
  14679. immediate retransmission, in order to prevent duplicate retransmissions
  14680. .ce
  14681. following the clearance of the timer recovery condition, the DCE shall 
  14682. inhibit retransmission of a specific I\ frame [same N(R) in the same numbering 
  14683. cycle] 
  14684. .ce
  14685. if the DCE has retransmitted that I\ frame as the result of the received REJ
  14686. .ce
  14687. command with the P\ bit set to\ 1.
  14688. .ce
  14689. .parag
  14690. .ce
  14691. If Timer T1 runs out in the timer recovery condition, and no I or
  14692. .ce
  14693. supervisory frame with the P/F bit set to 0 and with a valid N(R) has been
  14694. .ce
  14695. received, or no REJ command with the P bit set to\ 1 and with a valid N(R) 
  14696. has been received, the DCE will add one to its transmission attempt variable, 
  14697. .ce
  14698. restart Timer\ T1, and either retransmit the I frame sent with the P bit set
  14699. .ce
  14700. to\ 1 or transmit an appropriate supervisory command with the P bit set to\ 1.
  14701. .ce
  14702. .parag
  14703. .ce
  14704.  
  14705. .ce
  14706. If the transmission attempt variable is equal to N2, the DCE will
  14707. .ce
  14708. initiate a data link resetting procedure as described in \(sc\ 2.4.7.2 
  14709. below, or 
  14710. .ce
  14711. will transmit a DM response to ask the DTE to initiate a data link set\(hyup
  14712. .ce
  14713. procedure as described in \(sc\ 2.4.4.1 above and enter the disconnected 
  14714. phase. N2 is a system parameter (see \(sc\ 2.4.8.4 below). 
  14715. .ce
  14716. .parag
  14717. .ce
  14718. \fINote\fR 
  14719. .ce
  14720. \ \(em\ Although the DCE may implement the internal variable \fIx\fR 
  14721. .ce
  14722. ,
  14723. .ce
  14724. other mechanisms do exist that achieve the identical function.
  14725. .ce
  14726. .parag
  14727. .ce
  14728. 2.4.6
  14729. .ce
  14730. \fILAPB conditions for \fR 
  14731. .ce
  14732. \fIdata link resetting or data link\fR 
  14733. .ce
  14734.  
  14735. .ce
  14736. \fIre\(hyinitialization\fR 
  14737. .ce
  14738. \fI(data link set\(hyup)\fR 
  14739. .ce
  14740. .parag
  14741. .ce
  14742. 2.4.6.1
  14743. .ce
  14744. When the DCE receives, during the information transfer phase, a
  14745. .ce
  14746. frame which is not invalid (see \(sc\ 2.3.5.3) with one of the conditions 
  14747. listed in \(sc\ 2.3.4.9 above, the DCE will request the DTE to initiate 
  14748. a data link resetting procedure by transmitting an FRMR response to the 
  14749. DTE as described in 
  14750. .ce
  14751. \(sc\ 2.4.7.3.
  14752. .ce
  14753. .parag
  14754. .ce
  14755. 2.4.6.2
  14756. .ce
  14757. When the DCE receives, during the information transfer phase, an FRMR response 
  14758. from the DTE, the DCE will either initiate the data link 
  14759. .ce
  14760. resetting procedures itself as described in \(sc\ 2.4.7.2 or return a DM 
  14761. response to ask the DTE to initiate the data link set\(hyup (initialization) 
  14762. procedure as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  14763. the DCE will enter 
  14764. .ce
  14765. the disconnected phase as described in \(sc\ 2.4.4.4.2.
  14766. .ce
  14767. .parag
  14768. .ce
  14769. 2.4.6.3
  14770. .ce
  14771. When the DCE receives, during the information transfer phase, a UA response, 
  14772. or an unsolicited response with the F bit set to\ 1, the DCE may 
  14773. .ce
  14774. either initiate the data link resetting procedures itself as described in
  14775. .ce
  14776. \(sc\ 2.4.7.2, or return a DM response to ask the DTE to initiate the data link
  14777. .ce
  14778. set\(hyup (initialization) procedure as described in \(sc\ 2.4.4.1. After 
  14779. transmitting a DM response, the DCE will enter the disconnected phase as 
  14780. described in 
  14781. .ce
  14782. \(sc\ 2.4.4.4.2.
  14783. .ce
  14784. .parag
  14785. .ce
  14786. 2.4.6.4
  14787. .ce
  14788. When the DCE receives, during the information transfer phase, a DM response 
  14789. from the DTE, the DCE will either initiate the data link set\(hyup 
  14790. .ce
  14791. (initialization) procedures itself as described in \(sc\ 2.4.4.1, or return 
  14792. a DM 
  14793. .ce
  14794. response to ask the DTE to initiate the data link set\(hyup (initialization)
  14795. .ce
  14796. procedures as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  14797. the DCE will enter the disconnected phase as described in \(sc\ 2.4.4.4.2. 
  14798. .ce
  14799. .parag
  14800. .ce
  14801.  
  14802. .ce
  14803. 2.4.7
  14804. .ce
  14805. \fILAPB procedure for data link resetting\fR 
  14806. .ce
  14807. .parag
  14808. .ce
  14809. 2.4.7.1
  14810. .ce
  14811. The data link resetting procedure is used to initialize both
  14812. .ce
  14813. directions of information transfer according to the procedure described 
  14814. below. The data link resetting procedure only applies during the information 
  14815. transfer phase. 
  14816. .ce
  14817. .parag
  14818. .ce
  14819. 2.4.7.2
  14820. .ce
  14821. Either the DTE or the DCE may initiate the data link resetting
  14822. .ce
  14823. procedure. The data link resetting procedure indicates a clearance of a DCE
  14824. .ce
  14825. and/or DTE busy condition, if present.
  14826. .ce
  14827. .parag
  14828. .ce
  14829. The DTE shall initiate a data link resetting by transmitting an
  14830. .ce
  14831. SABM/SABME command to the DCE. If, upon correct receipt of the SABM/SABME
  14832. .ce
  14833. command, the DCE determines that it can continue in the information transfer
  14834. .ce
  14835. phase, it will return a UA response to the DTE, will reset its send and 
  14836. receive state variables V(S) and V(R) to zero, and will remain in the information 
  14837. .ce
  14838. transfer phase. If, upon correct receipt of the SABM/SABME command, the DCE
  14839. .ce
  14840. determines that it cannot remain in the information transfer phase, it will
  14841. .ce
  14842. return a DM response as a denial to the resetting request and will enter the
  14843. .ce
  14844. disconnected phase.
  14845. .ce
  14846. .parag
  14847. .ce
  14848. The DCE will initiate a data link resetting by transmitting an
  14849. .ce
  14850. SABM/SABME command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 
  14851. below). Upon reception of a UA response from the DTE, the DCE will reset 
  14852. its send and receive state variables V(S) and V(R) to zero, will stop its 
  14853. Timer\ T1, and will remain in the information transfer phase. Upon reception 
  14854. of a DM response from the DTE as a denial to the data link resetting request, 
  14855. the DCE will stop its Timer\ T1 and will enter the disconnected phase. 
  14856. .ce
  14857. .parag
  14858. .ce
  14859. The DCE, having sent an SABM/SABME command, will ignore and discard
  14860. .ce
  14861. any frames received from the DTE except an SABM/SABME or DISC command, 
  14862. or a UA or DM response. The receipt of an SABM/SABME or DISC command from 
  14863. the DTE will result in a collision situation that is resolved per \(sc\ 
  14864. 2.4.4.5 above. Frames 
  14865. .ce
  14866. other than the UA or DM response sent in response to a received SABM/SABME 
  14867. or DISC command will be sent only after the data link is reset and if no 
  14868. .ce
  14869. outstanding SABM/SABME command exists.
  14870. .ce
  14871. .parag
  14872. .ce
  14873.  
  14874. .ce
  14875. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  14876. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  14877. .ce
  14878. resend the SABM/SABME command and will restart Timer\ T1. After N2 attempts 
  14879. to reset the data link, the DCE will initiate appropriate higher layer 
  14880. recovery 
  14881. .ce
  14882. action and will enter the disconnected phase. The value of N2 is defined in
  14883. .ce
  14884. \(sc\ 2.4.8.4 below.
  14885. .ce
  14886. .parag
  14887. .ce
  14888. 2.4.7.3
  14889. .ce
  14890. The DCE may ask the DTE to reset the data link by transmitting an FRMR 
  14891. response (see \(sc\ 2.4.6.1 above). After transmitting an FRMR response, 
  14892. .ce
  14893. the DCE will enter the frame rejection condition.
  14894. .ce
  14895. .parag
  14896. .ce
  14897. The frame rejection condition is cleared when the DCE receives an SABM/SABME 
  14898. command, a DISC command, a FRMR response, or a DM response; or if 
  14899. .ce
  14900. the DCE transmits an SABM/SABME command, a DISC command, or a DM response.
  14901. .ce
  14902. Other commands received while in the frame rejection condition will cause 
  14903. the DCE to retransmit the FRMR response with the same information field 
  14904. as 
  14905. .ce
  14906. originally transmitted.
  14907. .ce
  14908. .parag
  14909. .ce
  14910. The DCE may start Timer\ T1 on transmission of the FRMR response. If
  14911. .ce
  14912. Timer\ T1 runs out before the frame rejection condition is cleared, the 
  14913. DCE may retransmit the FRMR response, and restart T1. After N2 attempts 
  14914. (time outs) to get the DTE to reset the data link, the DCE may reset the 
  14915. data link itself as described in \(sc\ 2.4.7.2 above. The value of N2 is 
  14916. defined in \(sc\ 2.4.8.4 below. 
  14917. .ce
  14918. .parag
  14919. .ce
  14920.  
  14921. .ce
  14922. In the frame rejection condition, I frames and supervisory frames will 
  14923. not be transmitted by the DCE. Also, received I frames and supervisory 
  14924. frames will be discarded by the DCE except for the observance of a P bit 
  14925. set to\ 1. 
  14926. .ce
  14927. When an additional FRMR response must be transmitted by the DCE as a result 
  14928. of the receipt of a P\ bit set to 1 while Timer\ T1 is running, Timer\ 
  14929. T1 will 
  14930. .ce
  14931. continue to run. Upon reception of an FRMR response (even during a frame
  14932. .ce
  14933. rejection condition), the DCE will initiate a resetting procedure by
  14934. .ce
  14935. transmitting an SABM/SABME command as described in \(sc\ 2.4.7.2 above, or will
  14936. .ce
  14937. transmit a DM response to ask the DTE to initiate the data link set\(hyup
  14938. .ce
  14939. procedure as described in \(sc\ 2.4.4.1 and enter the disconnected phase.
  14940. .ce
  14941. .parag
  14942. .ce
  14943. 2.4.8
  14944. .ce
  14945. \fIList of \fR 
  14946. .ce
  14947. \fILAPB system parameters\fR 
  14948. .ce
  14949. .parag
  14950. .ce
  14951. The DCE and DTE system parameters are as follows:
  14952. .ce
  14953. .parag
  14954. .ce
  14955.  
  14956. .ce
  14957. 2.4.8.1
  14958. .ce
  14959. \fITimer\fR 
  14960. .ce
  14961. \fIT1\fR 
  14962. .ce
  14963. .parag
  14964. .ce
  14965. The value of the DTE Timer T1 system parameter may be different
  14966. .ce
  14967. than the value of the DCE Timer T1 system parameter. These values shall 
  14968. be made known to both the DTE and the DCE, and agreed to for a period of 
  14969. time by both the DTE and the DCE. 
  14970. .ce
  14971. .parag
  14972. .ce
  14973. The period of Timer T1, at the end of which retransmission of a frame may 
  14974. be initiated (see \(sc\ 2.4.4 and \(sc\ 2.4.5 above for the DCE), shall 
  14975. take into account whether T1 is started at the beginning or the end of 
  14976. the transmission of a frame. 
  14977. .ce
  14978. .parag
  14979. .ce
  14980. The proper operation of the procedure requires that the transmitter's (DCE 
  14981. or DTE) Timer\ T1 be greater than the maximum time between transmission 
  14982. of a frame (SABM/SABME, DISC, I\ or supervisory command, or DM or FRMR 
  14983. response) 
  14984. .ce
  14985. and the reception of the corresponding frame returned as an answer to that
  14986. .ce
  14987. frame (UA, DM or acknowledging frame). Therefore, the receiver (DCE or DTE)
  14988. .ce
  14989. should not delay the response or acknowledging frame returned to one of the
  14990. .ce
  14991. above frames by more than a value\ T2, where T2 is a system parameter (see
  14992. .ce
  14993. \(sc\ 2.4.8.2).
  14994. .ce
  14995. .parag
  14996. .ce
  14997.  
  14998. .ce
  14999. The DCE will not delay the response or acknowledging frame returned to 
  15000. one of the above DTE frames by more than a period\ T2. 
  15001. .ce
  15002. .parag
  15003. .ce
  15004. 2.4.8.2
  15005. .ce
  15006. \fIParameter T2\fR 
  15007. .ce
  15008. .parag
  15009. .ce
  15010. The value of the DTE parameter T2 may be different than the value of the 
  15011. DCE parameter T2. These values shall be made known to both the DTE and 
  15012. the DCE, and agreed to for a period of time by both the DTE and the DCE. 
  15013. .ce
  15014. .parag
  15015. .ce
  15016.  
  15017. .ce
  15018. The period of parameter T2 shall indicate the amount of time
  15019. .ce
  15020. available at the DCE or DTE before the acknowledging frame must be initiated 
  15021. in order to ensure its receipt by the DTE or DCE, respectively, prior to 
  15022. Timer\ T1 running out at the DTE or DCE (parameter\ T2\ <\ Timer\ T1). 
  15023. .ce
  15024. .parag
  15025. .ce
  15026. \fINote\fR 
  15027. .ce
  15028. \ \(em\ The period of parameter T2 shall take into account the
  15029. .ce
  15030. following timing factors: the transmission time of the acknowledging frame, 
  15031. the propagation time over the access data link, the stated processing times 
  15032. at the DCE and the DTE, and the time to complete the transmission of the 
  15033. frame(s) in the DCE or DTE transmit queue that are neither displaceable 
  15034. or modifiable in an orderly manner. 
  15035. .ce
  15036. .parag
  15037. .ce
  15038.  
  15039. .ce
  15040. Given a value for Timer T1 for the DTE or DCE, the value of parameter T2 
  15041. at the DCE or DTE, respectively, must be no larger than T1 minus\ 2 times 
  15042. the propagation time over the access data link, minus the frame processing 
  15043. time at the DCE, minus the frame processing time at the DTE, and minus 
  15044. the transmission time of the acknowledging frame by the DCE or DTE, respectively. 
  15045. .ce
  15046. .parag
  15047. .ce
  15048.  
  15049. .ce
  15050. 2.4.8.3
  15051. .ce
  15052. \fITimer T3\fR 
  15053. .ce
  15054. .parag
  15055. .ce
  15056. The DCE shall support a Timer T3 system parameter, the value of
  15057. .ce
  15058. which shall be made known to the DTE.
  15059. .ce
  15060. .parag
  15061. .ce
  15062. The period of Timer T3, at the end of which an indication of an
  15063. .ce
  15064. observed excessively long idle channel state condition is passed to the 
  15065. Packet Layer, shall be sufficiently greater than the period of the DCE 
  15066. Timer T1 
  15067. .ce
  15068. (i.e.\ T3\ >\ T1) so that the expiration of T3 provides the desired level of
  15069. .ce
  15070. assurance that the data link channel is in a non\(hyactive, non\(hyoperational 
  15071. state, and is in need of data link set\(hyup before normal data link operation 
  15072. can 
  15073. .ce
  15074. resume.
  15075. .ce
  15076. .parag
  15077. .ce
  15078. 2.4.8.4
  15079. .ce
  15080. \fIMaximum number of attempts\fR 
  15081. .ce
  15082. \fIto complete a\fR 
  15083. .ce
  15084.  
  15085. .ce
  15086. \fItransmission N2\fR 
  15087. .ce
  15088. .parag
  15089. .ce
  15090.  
  15091. .ce
  15092. The value of the DTE N2 system parameter may be different than the value 
  15093. of the DCE N2 system parameter. These values shall be made known to both 
  15094. the DTE and the DCE, and agreed to for a period of time by both the DTE 
  15095. and the DCE. 
  15096. .ce
  15097. .parag
  15098. .ce
  15099. The value of N2 shall indicate the maximum number of attempts made by the 
  15100. DCE or DTE to complete the successful transmission of a frame to the DTE 
  15101. or DCE, respectively. 
  15102. .ce
  15103. .parag
  15104. .ce
  15105. 2.4.8.5
  15106. .ce
  15107. \fIMaximum number of bits in an I frame N1\fR 
  15108. .ce
  15109. .parag
  15110. .ce
  15111. The value of the DTE N1 system parameter may be different than the value 
  15112. of the DCE N1 system parameter. These values shall be made known to both 
  15113. the DTE and the DCE. 
  15114. .ce
  15115. .parag
  15116. .ce
  15117. The values of N1 shall indicate the maximum number of bits in an
  15118. .ce
  15119. I\ frame (excluding flags and 0\ bits inserted for transparency) that the 
  15120. DCE or DTE is willing to accept from the DTE or DCE, respectively. 
  15121. .ce
  15122. .parag
  15123. .ce
  15124. In order to allow for universal operation, a DTE should support a
  15125. .ce
  15126. value of DTE N1 which is not less than 1080\ bits (135\ octets). DTEs should 
  15127. be aware that the network may transmit longer packets (see \(sc\ 5.2), 
  15128. that may result in a data link layer problem. 
  15129. .ce
  15130. .parag
  15131. .ce
  15132.  
  15133. .ce
  15134. All networks shall offer to a DTE which requires it, a value of DCE N1 
  15135. which is greater than or equal to 2072\ bits (259\ octets) plus the length 
  15136. of the address, control and FCS fields at the DTE/DCE interface, and greater 
  15137. than or equal to the maximum length of the data packets which may cross 
  15138. the DTE/DCE 
  15139. .ce
  15140. interface plus the length of the address, control and FCS fields at the 
  15141. DTE/DCE interface. 
  15142. .ce
  15143. .parag
  15144. .ce
  15145. Appendix II provides a description of how the values stated above are  derived.
  15146. .ce
  15147. .parag
  15148. .ce
  15149. 2.4.8.6
  15150. .ce
  15151. \fIMaximum number of \fR 
  15152. .ce
  15153. \fIoutstanding I frames k\fR 
  15154. .ce
  15155. .parag
  15156. .ce
  15157. The value of the DTE k system parameter shall be the same as the
  15158. .ce
  15159. value of the DCE k system parameter. This value shall be agreed to for a
  15160. .ce
  15161. period of time by both the DTE and the DCE.
  15162. .ce
  15163. .parag
  15164. .ce
  15165. The value of k shall indicate the maximum number of sequentially
  15166. .ce
  15167. numbered I\ frames that the DTE or DCE may have outstanding
  15168. .ce
  15169. (i.e.\ unacknowledged) at any given time. The value of k shall never exceed
  15170. .ce
  15171. seven for modulo\ 8 operation, or one hundred and twenty\(hyseven for modulo\ 
  15172. 128 
  15173. .ce
  15174. operation. All networks (DCEs) shall support a value of seven. Other values 
  15175. of k (less than and greater than seven) may also be supported by networks 
  15176. .ce
  15177. (DCEs).
  15178. .ce
  15179. .parag
  15180. .ce
  15181. .line
  15182. .ce
  15183. \fBMONTAGE : \(sc 2.5 de cette Recommandation sur le reste de cette page\fR 
  15184. .ce
  15185. .parag
  15186. .ce
  15187.  
  15188. .ce
  15189. .line
  15190. .ad r
  15191. \fBTable 1/X.25 [T1.25], p.\fR 
  15192. .sp 1P
  15193. .RT
  15194. .ad b
  15195. .RT
  15196. .ce
  15197. .line
  15198. .ce
  15199. \fBTable 2/X.25 [T2.25], p.\fR 
  15200. .ce
  15201. 2.2.2
  15202. .ce
  15203. \fIFlag sequence\fR 
  15204. .ce
  15205. .parag
  15206. .ce
  15207. All frames shall start and end with the flag sequence consisting of one 
  15208. 0\ bit followed by six contiguous 1\ bits and one 0\ bit. The DTE and DCE 
  15209. .ce
  15210. shall only send complete eight\(hybit flag sequences when sending multiple flag
  15211. .ce
  15212. sequences (see \(sc\ 2.2.11). A single flag may be used as both the 
  15213. .ce
  15214. closing
  15215. .ce
  15216. flag
  15217. .ce
  15218. for one frame and the 
  15219. .ce
  15220. opening flag
  15221. .ce
  15222. for the next frame.
  15223. .ce
  15224. .parag
  15225. .ce
  15226. 2.2.3
  15227. .ce
  15228. \fIAddress field\fR 
  15229. .ce
  15230. .parag
  15231. .ce
  15232. The address field shall consist of one octet. The address field
  15233. .ce
  15234. identifies the intended receiver of a command frame and the transmitter of a
  15235. .ce
  15236. response frame. The coding of the address field is described in \(sc\ 2.4.2 
  15237. (LAPB) and in \(sc\ 2.7.1 (LAP) below. 
  15238. .ce
  15239. .parag
  15240. .ce
  15241. 2.2.4
  15242. .ce
  15243. \fIControl field\fR 
  15244. .ce
  15245. .parag
  15246. .ce
  15247. For modulo\ 8 (basic) operation, the control field shall consist of one 
  15248. octet. For modulo\ 128 (extended) operation, the control field shall consist 
  15249. of two octets for frame formats that contain sequence numbers, and one 
  15250. octet 
  15251. .ce
  15252. for frame formats that do not contain sequence numbers. The content of this
  15253. .ce
  15254. field is described in \(sc\ 2.3.2\ (LAPB) and in \(sc\ 2.6.2 (LAP) below.
  15255. .ce
  15256. .parag
  15257. .ce
  15258. 2.2.5
  15259. .ce
  15260. \fIInformation field\fR 
  15261. .ce
  15262. .parag
  15263. .ce
  15264. The information field of a frame, when present, follows the control field 
  15265. (see \(sc\ 2.2.4 above) and precedes the 
  15266. .ce
  15267. frame check sequence field
  15268. .ce
  15269. (see \(sc\ 2.2.7 below).
  15270. .ce
  15271. .parag
  15272. .ce
  15273. See \(sc\(sc 2.3.4.9, 2.5.2, 2.6.4.8 and 5 for the various codings and
  15274. .ce
  15275. groupings of bits in the information field as used in this Recommendation.
  15276. .ce
  15277. .parag
  15278. .ce
  15279.  
  15280. .ce
  15281. See \(sc\(sc 2.3.4.9, 2.4.8.5, 2.6.4.8 and 2.7.7.5 below with regard to 
  15282. the maximum information field length. 
  15283. .ce
  15284. .parag
  15285. .ce
  15286. 2.2.6
  15287. .ce
  15288. \fITransparency\fR 
  15289. .ce
  15290. .parag
  15291. .ce
  15292. The DCE or DTE, when transmitting, shall examine the frame content between 
  15293. the two flag sequences including the address, control, information and 
  15294. FCS fields and shall insert a 0 bit after all sequences of 5 contiguous 
  15295. 1\ bits (including the last 5\ bits of the FCS) to ensure that a flag sequence 
  15296. is not 
  15297. .ce
  15298. simulated. The DCE or DTE, when receiving, shall examine the frame content 
  15299. and shall discard any 0\ bit which directly follows\ 5 contiguous 1\ bits. 
  15300. .ce
  15301. .parag
  15302. .ce
  15303. 2.2.7
  15304. .ce
  15305. \fIFrame check sequence (FCS)\fR 
  15306. .ce
  15307. \fI field\fR 
  15308. .ce
  15309. .parag
  15310. .ce
  15311. The notation used to describe the FCS is based on the property of cyclic 
  15312. codes that a code vector such as 1000000100001 can be represented by a 
  15313. polynomial \fIP\fR 
  15314. .ce
  15315. (\fIx\fR 
  15316. .ce
  15317. )\ =\ \fIx\fR 
  15318. .ce
  15319. \u1\d\u2\d\ +\ \fIx\fR 
  15320. .ce
  15321. \u5\d\ +\ 1. The elements of an \fIn\fR 
  15322. .ce
  15323. \(hyelement
  15324. .ce
  15325. code word are thus the coefficients of a polynomial of order \fIn\fR 
  15326. .ce
  15327. \ \(em\ 1. In this application, these coefficients can have the value\ 
  15328. 0 or\ 1 and the polynomial 
  15329. .ce
  15330. operations are performed modulo\ 2. The polynomial representing the content 
  15331. of a frame is generated using the first bit received after the frame opening 
  15332. flag as the coefficient of the highest order term. 
  15333. .ce
  15334. .parag
  15335. .ce
  15336. The FCS field shall be a 16\(hybit sequence. It shall be the ones
  15337. .ce
  15338. complement of the sum (modulo\ 2) of:
  15339. .ce
  15340. .parag
  15341. .ce
  15342. 1)
  15343. .ce
  15344. the remainder of
  15345. .ce
  15346. \fIx\fR 
  15347. .ce
  15348. \uD\dlFk\fR 
  15349. .ce
  15350. (\fIx\fR 
  15351. .ce
  15352. \u1\d\u5\d\uD\dlF036+\ \fIx\fR 
  15353. .ce
  15354. \u1\d\u4\d\ +\ \fIx\fR 
  15355. .ce
  15356. \u1\d\u3\d\ +
  15357. .ce
  15358. \fIx\fR 
  15359. .ce
  15360. \u1\d\u2\d\ +\ \fIx\fR 
  15361. .ce
  15362. \u1\d\u1\d\ +\ \fIx\fR 
  15363. .ce
  15364. \u1\d\u0\d\ +\ \fIx\fR 
  15365. .ce
  15366. \u9\d\ +\ \fIx\fR 
  15367. .ce
  15368. \u8\d\ +
  15369. .ce
  15370. \fIx\fR 
  15371. .ce
  15372. \u7\d\ +\ \fIx\fR 
  15373. .ce
  15374. \u6\d\ +\ \fIx\fR 
  15375. .ce
  15376. \u5\d\ +\ \fIx\fR 
  15377. .ce
  15378. \u4\d\uD\dlF036+\ \fIx\fR 
  15379. .ce
  15380. \u3\d\ +
  15381. .ce
  15382. +\ \fIx\fR 
  15383. .ce
  15384. \u2\d\ +\ \fIx\fR 
  15385. .ce
  15386. \ +\ 1) divided (modulo\ 2)
  15387. .ce
  15388. by the
  15389. .ce
  15390. generator polynomial \fIx\fR 
  15391. .ce
  15392. \u1\d\u6\d\ +\ \fIx\fR 
  15393. .ce
  15394. \u1\d\u2\d\ +\ \fIx\fR 
  15395. .ce
  15396. \u5\d\ +\ 1,
  15397. .ce
  15398. where \fIk\fR 
  15399. .ce
  15400. is the number of bits in the frame existing between,
  15401. .ce
  15402. but not including, the final bit of the opening flag and the
  15403. .ce
  15404. first bit of the FCS, excluding bits inserted for transparency,
  15405. .ce
  15406. and
  15407. .ce
  15408. .parag
  15409. .ce
  15410. 2)
  15411. .ce
  15412. the remainder of the division (modulo 2) by the generator
  15413. .ce
  15414. polynomial \fIx\fR 
  15415. .ce
  15416. \u1\d\u6\d\ +\ \fIx\fR 
  15417. .ce
  15418. \u1\d\u2\d\ +\ \fIx\fR 
  15419. .ce
  15420. \u5\d\ +\ 1 of the
  15421. .ce
  15422. product of \fIx\fR 
  15423. .ce
  15424. \u1\d\u6\d by the content of the frame, existing
  15425. .ce
  15426. between but not including, the final bit of the opening flag and
  15427. .ce
  15428. the first bit of the FCS, excluding bits inserted for
  15429. .ce
  15430. transparency.
  15431. .ce
  15432. .parag
  15433. .ce
  15434.  
  15435. .ce
  15436. As a typical implementation, at the transmitter, the initial
  15437. .ce
  15438. content of the register of the device computing the remainder of the division 
  15439. is preset to all 1s and is then modified by division by the generator 
  15440. .ce
  15441. polynomial (as described above) on the address, control and information 
  15442. fields; the ones complement of the resulting remainder is transmitted as 
  15443. the 16\(hybit 
  15444. .ce
  15445. FCS.
  15446. .ce
  15447. .parag
  15448. .ce
  15449. At the receiver, the initial content of the register of the device
  15450. .ce
  15451. computing the remainder is preset to all 1s. The final remainder, after
  15452. .ce
  15453. multiplication by \fIx\fR 
  15454. .ce
  15455. \u1\d\u6\d and then division (modulo\ 2) by the generator
  15456. .ce
  15457. polynomial \fIx\fR 
  15458. .ce
  15459. \u1\d\u6\d\ +\ \fIx\fR 
  15460. .ce
  15461. \u1\d\u2\d\ +\ \fIx\fR 
  15462. .ce
  15463. \u5\d\ +\ 1 of the serial incoming protected bits and the FCS, will be 
  15464. 0001110100001111 (\fIx\fR 
  15465. .ce
  15466. \u1\d\u5\d through
  15467. .ce
  15468. \fIx\fR 
  15469. .ce
  15470. \u0\d, respectively) in the absence of transmission errors.
  15471. .ce
  15472. .parag
  15473. .ce
  15474. \fINote\fR 
  15475. .ce
  15476. \ \(em\ Examples of transmitted bit patterns by the DCE and the DTE illustrating 
  15477. application of the transparency mechanism and the frame check 
  15478. .ce
  15479. sequence to the SABM command and the UA response are given in Appendix\ I.
  15480. .ce
  15481. .parag
  15482. .ce
  15483. 2.2.8
  15484. .ce
  15485. \fIOrder of bit transmission\fR 
  15486. .ce
  15487. .parag
  15488. .ce
  15489. Addresses, commands, responses and sequence numbers shall be
  15490. .ce
  15491. transmitted with the low\(hyorder bit first (for example, the first bit of the
  15492. .ce
  15493. sequence number that is transmitted shall have the weight 2\u0\d). The 
  15494. order of transmitting bits within the information field is not specified 
  15495. under \(sc\ 2 of 
  15496. .ce
  15497. this Recommendation. The FCS shall be transmitted to the line commencing 
  15498. with the coefficient of the highest term, which is found in bit position\ 
  15499. 16 of the FCS\ field (see Tables\ 1/X.25 and 2/X.25). 
  15500. .ce
  15501. .parag
  15502. .ce
  15503. \fINote\fR 
  15504. .ce
  15505. \ \(em\ In Tables 1/X.25 to 13/X.25, bit 1 is defined as the
  15506. .ce
  15507. low\(hyorder bit.
  15508. .ce
  15509. .parag
  15510. .ce
  15511. 2.2.9
  15512. .ce
  15513. \fIInvalid frames\fR 
  15514. .ce
  15515. .parag
  15516. .ce
  15517. The definition of an invalid frame is described in \(sc\ 2.3.5.3 (LAPB) 
  15518. and in \(sc\ 2.6.5.3 (LAP) below. 
  15519. .ce
  15520. .parag
  15521. .ce
  15522. 2.2.10
  15523. .ce
  15524. \fIFrame abortion\fR 
  15525. .ce
  15526. .parag
  15527. .ce
  15528. Aborting a frame is performed by transmitting at least seven
  15529. .ce
  15530. contiguous 1\ bits (with no inserted 0\ bits).
  15531. .ce
  15532. .parag
  15533. .ce
  15534. 2.2.11
  15535. .ce
  15536. \fIInterframe time fill\fR 
  15537. .ce
  15538. .parag
  15539. .ce
  15540. Interframe time fill is accomplished by transmitting contiguous
  15541. .ce
  15542. flags between frames, i.e.\ multiple eight\(hybit flag sequences (see
  15543. .ce
  15544. \(sc\ 2.2.2).
  15545. .ce
  15546. .parag
  15547. .ce
  15548. 2.2.12
  15549. .ce
  15550. \fILink channel states\fR 
  15551. .ce
  15552. .parag
  15553. .ce
  15554. A link channel as defined here is the means for transmission for
  15555. .ce
  15556. one direction.
  15557. .ce
  15558. .parag
  15559. .ce
  15560. 2.2.12.1
  15561. .ce
  15562. \fIActive channel state\fR 
  15563. .ce
  15564. .parag
  15565. .ce
  15566. The DCE incoming or outgoing channel is defined to be in an active condition 
  15567. when it is receiving or transmitting, respectively, a frame, an 
  15568. .ce
  15569. abortion sequence or interframe time fill.
  15570. .ce
  15571. .parag
  15572. .ce
  15573. 2.2.12.2
  15574. .ce
  15575. \fIIdle channel state\fR 
  15576. .ce
  15577. .parag
  15578. .ce
  15579. The DCE incoming or outgoing channel is defined to be in an idle
  15580. .ce
  15581. condition when it is receiving or transmitting, respectively, a continuous\ 
  15582. 1s state for a period of at least 15\ bit times. 
  15583. .ce
  15584. .parag
  15585. .ce
  15586. See \(sc\ 2.3.5.5 for a description of DCE action when an idle condition 
  15587. exists on its incoming channel for an excessive period of time. 
  15588. .ce
  15589. .parag
  15590. .ce
  15591.  
  15592. .ce
  15593. 2.3
  15594. .ce
  15595. \fILAPB elements of procedures\fR 
  15596. .ce
  15597. .parag
  15598. .ce
  15599. 2.3.1
  15600. .ce
  15601. The LAPB elements of procedures are defined in terms of actions
  15602. .ce
  15603. that occur on receipt of frames at the DCE or\ DTE.
  15604. .ce
  15605. .parag
  15606. .ce
  15607. The elements of procedures specified below contain the selection
  15608. .ce
  15609. of commands and responses relevant to the LAPB data link and system
  15610. .ce
  15611. configurations
  15612. .ce
  15613. described in \(sc\ 2.1 above. Together, \(sc\(sc\ 2.2 and 2.3 form the general
  15614. .ce
  15615. requirements for the proper management of a LAPB access data link.
  15616. .ce
  15617. .parag
  15618. .ce
  15619.  
  15620. .ce
  15621. 2.3.2
  15622. .ce
  15623. \fILAPB control field formats and parameters\fR 
  15624. .ce
  15625. .parag
  15626. .ce
  15627.  
  15628. .ce
  15629. 2.3.2.1
  15630. .ce
  15631. \fIControl field formats\fR 
  15632. .ce
  15633. .parag
  15634. .ce
  15635. The control field contains a command or a response, and sequence
  15636. .ce
  15637. numbers where applicable.
  15638. .ce
  15639. .parag
  15640. .ce
  15641. Three types of control field formats are used to perform numbered
  15642. .ce
  15643. information transfer (I\ format), numbered supervisory functions (S\ format) 
  15644. and unnumbered control functions (U\ format). 
  15645. .ce
  15646. .parag
  15647. .ce
  15648. The control field formats for basic (modulo\ 8) operation are depicted 
  15649. in Table\ 3/X.25. 
  15650. .ce
  15651. .parag
  15652. .ce
  15653.  
  15654. .ce
  15655. The control field formats for extended (modulo 128) operation are
  15656. .ce
  15657. depicted in Table\ 4/X.25.
  15658. .ce
  15659. .parag
  15660. .ce
  15661. .line
  15662. .ce
  15663. \fBTable 3/X.25 [T3.25], p.\fR 
  15664. .ce
  15665. .line
  15666. .ce
  15667. \fBTable 4/X.25 [T4/X.25], p.\fR 
  15668. .ce
  15669. 2.3.2.1.1
  15670. .ce
  15671. \fIInformation transfer format\fR 
  15672. .ce
  15673. \fI \(em I\fR 
  15674. .ce
  15675. .parag
  15676. .ce
  15677. The I format is used to perform an information transfer. The
  15678. .ce
  15679. functions of N(S), N(R) and P are independent; i.e.,\ each I\ frame has 
  15680. an N(S), an N(R) which may or may not acknowledge additional I\ frames 
  15681. received by the 
  15682. .ce
  15683. DCE or DTE, and a P\ bit that may be set to\ 0 or\ 1.
  15684. .ce
  15685. .parag
  15686. .ce
  15687. 2.3.2.1.2
  15688. .ce
  15689. \fISupervisory format\fR 
  15690. .ce
  15691. \fI \(em S\fR 
  15692. .ce
  15693. .parag
  15694. .ce
  15695. The S format is used to perform data link supervisory control
  15696. .ce
  15697. functions such as acknowledge I\ frames, request retransmission of I\ frames, 
  15698. and to request a temporary suspension of transmission of I\ frames. The 
  15699. functions of N(R) and P/F are independent; i.e.,\ each supervisory frame 
  15700. has an N(R) which 
  15701. .ce
  15702. may or may not acknowledge additional I\ frames received by the DCE or\ 
  15703. DTE, and a P/F\ bit that may be set to\ 0 or\ 1. 
  15704. .ce
  15705. .parag
  15706. .ce
  15707. 2.3.2.1.3
  15708. .ce
  15709. \fIUnnumbered format\fR 
  15710. .ce
  15711. \fI \(em U\fR 
  15712. .ce
  15713. .parag
  15714. .ce
  15715. The U format is used to provide additional data link control
  15716. .ce
  15717. functions. This format contains no sequence numbers, but does include a 
  15718. P/F\ bit that may be set to\ 0 or\ 1. The unnumbered frames have the same 
  15719. control field 
  15720. .ce
  15721. length (one octet) in both basic (modulo\ 8) operation and extended (modulo\ 
  15722. 128) operation. 
  15723. .ce
  15724. .parag
  15725. .ce
  15726. 2.3.2.2
  15727. .ce
  15728. \fIControl field parameters\fR 
  15729. .ce
  15730. .parag
  15731. .ce
  15732. The various parameters associated with the control field formats
  15733. .ce
  15734. are described below.
  15735. .ce
  15736. .parag
  15737. .ce
  15738. 2.3.2.2.1
  15739. .ce
  15740. \fIModulus\fR 
  15741. .ce
  15742. .parag
  15743. .ce
  15744. Each I frame is sequentially numbered and may have the value\ 0
  15745. .ce
  15746. through modulus minus\ 1 (where \*Qmodulus\*U is the modulus of the sequence
  15747. .ce
  15748. numbers). The modulus equals either\ 8 or\ 128 and the sequence numbers cycle
  15749. .ce
  15750. through the entire range.
  15751. .ce
  15752. .parag
  15753. .ce
  15754. 2.3.2.2.2
  15755. .ce
  15756. \fISend state variable\fR 
  15757. .ce
  15758. \fI V(S)\fR 
  15759. .ce
  15760. .parag
  15761. .ce
  15762. The send state variable V(S) denotes the sequence number of the
  15763. .ce
  15764. next in\(hysequence I\ frame to be transmitted. V(S) can take on the values\ 0
  15765. .ce
  15766. through modulus minus\ 1. The value of V(S) is incremented by\ 1 with each
  15767. .ce
  15768. successive I\ frame transmission, but cannot exceed the N(R) of the last
  15769. .ce
  15770. received\ I or supervisory frame by more than the maximum number of outstanding 
  15771. I\ frames\ (\fIk\fR 
  15772. .ce
  15773. ). The value of\ k is defined in \(sc\ 2.4.8.6 below.
  15774. .ce
  15775. .parag
  15776. .ce
  15777.  
  15778. .ce
  15779. 2.3.2.2.3
  15780. .ce
  15781. \fISend sequence number\fR 
  15782. .ce
  15783. \fI N(S)\fR 
  15784. .ce
  15785. .parag
  15786. .ce
  15787. Only I frames contain N(S), the send sequence number of transmitted I\ 
  15788. frames. At the time that an in\(hysequence I\ frame is designated for 
  15789. .ce
  15790. transmission, the value of N(S) is set equal to the value of the send state
  15791. .ce
  15792. variable\ V(S).
  15793. .ce
  15794. .parag
  15795. .ce
  15796. 2.3.2.2.4
  15797. .ce
  15798. \fIReceive state variable\fR 
  15799. .ce
  15800. \fIV(R)\fR 
  15801. .ce
  15802. .parag
  15803. .ce
  15804. The receive state variable V(R) denotes the sequence number of the next 
  15805. in\(hysequence I\ frame expected to be received. V(R) can take on the values 
  15806. 0 through modulus minus\ 1. The value of V(R) is incremented by\ 1 by the 
  15807. receipt of an error\(hyfree, in\(hysequence I\ frame whose send sequence 
  15808. number N(S) equals 
  15809. .ce
  15810. the receive state variable V(R).
  15811. .ce
  15812. .parag
  15813. .ce
  15814. 2.3.2.2.5
  15815. .ce
  15816. \fIReceive sequence number\fR 
  15817. .ce
  15818. \fI N(R)\fR 
  15819. .ce
  15820. .parag
  15821. .ce
  15822. All I frames and supervisory frames contain N(R), the expected send sequence 
  15823. number of the next received I\ frame. At the time that a frame of the above 
  15824. types is designated for transmission, the value of N(R) is set equal to 
  15825. the current value of the receive state variable V(R). N(R) indicates that 
  15826. the DCE or DTE transmitting the N(R) has received correctly all I\ frames 
  15827. numbered up to and including N(R)\ \(em\ 1. 
  15828. .ce
  15829. .parag
  15830. .ce
  15831. 2.3.2.2.6
  15832. .ce
  15833. \fIPoll/Final bit\fR 
  15834. .ce
  15835. \fI P/F\fR 
  15836. .ce
  15837. .parag
  15838. .ce
  15839. All frames contain P/F, the Poll/Final bit. In command frames, the P/F 
  15840. bit is referred to as the P bit. In response frames, it is referred to 
  15841. as the F\ bit. 
  15842. .ce
  15843. .parag
  15844. .ce
  15845. 2.3.3
  15846. .ce
  15847. \fIFunctions of the Poll/Final bit\fR 
  15848. .ce
  15849. .parag
  15850. .ce
  15851. The Poll bit set to 1 is used by the DCE or DTE to solicit (poll) a response 
  15852. from the DTE or DCE, respectively. The Final bit set to\ 1 is used by the 
  15853. DCE or DTE to indicate the response frame transmitted by the DTE or DCE, 
  15854. .ce
  15855. respectively, as a result of the soliciting (poll) command.
  15856. .ce
  15857. .parag
  15858. .ce
  15859. The use of the P/F bit is described in \(sc\ 2.4.3 below.
  15860. .ce
  15861. .parag
  15862. .ce
  15863. 2.3.4
  15864. .ce
  15865. \fICommands and responses\fR 
  15866. .ce
  15867. .parag
  15868. .ce
  15869. For basic (modulo 8) operation, the commands and responses
  15870. .ce
  15871. represented in Table\ 5/X.25 will be supported by the DCE and the\ DTE.
  15872. .ce
  15873. .parag
  15874. .ce
  15875.  
  15876. .ce
  15877. For extended (modulo 128) operation, the commands and responses
  15878. .ce
  15879. represented in Table\ 6/X.25 will be supported by the DCE and the DTE.
  15880. .ce
  15881. .parag
  15882. .ce
  15883.  
  15884. .ce
  15885. For purposes of the LAPB procedures, the supervisory function bit encoding 
  15886. \*Q11\*U and those encodings of the modifier function bits in 
  15887. .ce
  15888. Tables\ 3/X.25 and 4/X.25 not identified in Tables\ 5/X.25 or 6/X.25 are
  15889. .ce
  15890. identified as \*Qundefined or not implemented\*U command and response control
  15891. .ce
  15892. fields.
  15893. .ce
  15894. .parag
  15895. .ce
  15896. The commands and responses in Tables 5/X.25 and 6/X.25 are defined as  follows:
  15897. .ce
  15898. .parag
  15899. .ce
  15900. 2.3.4.1
  15901. .ce
  15902. \fIInformation (I)\fR 
  15903. .ce
  15904. \fI command\fR 
  15905. .ce
  15906. .parag
  15907. .ce
  15908. The function of the information (I) command is to transfer across a data 
  15909. link a sequentially numbered frame containing an information field. 
  15910. .ce
  15911. .parag
  15912. .ce
  15913. .line
  15914. .ce
  15915. \fBTable 5/X.25 [T5.25], p.\fR 
  15916. .ce
  15917. .line
  15918. .ce
  15919. \fBTable 6/X.25 [T6.25], p.\fR 
  15920. .ce
  15921. 2.3.4.2
  15922. .ce
  15923. \fIReceive ready (RR)\fR 
  15924. .ce
  15925. \fI command and response\fR 
  15926. .ce
  15927. .parag
  15928. .ce
  15929. The receive ready (RR) supervisory frame is used by the DCE
  15930. .ce
  15931. or DTE to:
  15932. .ce
  15933. .parag
  15934. .ce
  15935.  
  15936. .ce
  15937. 1)
  15938. .ce
  15939. indicate it is ready to receive an I frame; and
  15940. .ce
  15941. .parag
  15942. .ce
  15943. 2)
  15944. .ce
  15945. acknowledge previously received I frames numbered up to and
  15946. .ce
  15947. including N(R)\ \(em\ 1.
  15948. .ce
  15949. .parag
  15950. .ce
  15951. An RR frame may be used to indicate the clearance of a busy
  15952. .ce
  15953. condition that was reported by the earlier transmission of an RNR frame 
  15954. by that same station (DCE or\ DTE). In addition to indicating the DCE or 
  15955. DTE status, the RR command with the P\ bit set to\ 1 may be used by the 
  15956. DCE or DTE to ask for the status of the DTE or DCE, respectively. 
  15957. .ce
  15958. .parag
  15959. .ce
  15960. 2.3.4.3
  15961. .ce
  15962. \fIReceive not ready (RNR) command and response\fR 
  15963. .ce
  15964. .parag
  15965. .ce
  15966. The receive not ready (RNR) supervisory frame is used by the DCE or DTE 
  15967. to indicate a busy condition; i.e.\ temporary inability to accept 
  15968. .ce
  15969. additional incoming I\ frames. I\ frames numbered up to and including N(R)\ 
  15970. \(em\ 1 
  15971. .ce
  15972. are acknowledged. I\ frame N(R) and any subsequent I\ frames received, if any,
  15973. .ce
  15974. are not acknowledged; the acceptance status of these I\ frames will be 
  15975. indicated in subsequent exchanges. 
  15976. .ce
  15977. .parag
  15978. .ce
  15979. In addition to indicating the DCE or DTE status, the RNR command with the 
  15980. P bit set to\ 1 may be used by an DCE or DTE to ask for the status of the 
  15981. .ce
  15982. DTE or DCE, respectively.
  15983. .ce
  15984. .parag
  15985. .ce
  15986. 2.3.4.4
  15987. .ce
  15988. \fIReject (REJ) command and response\fR 
  15989. .ce
  15990. .parag
  15991. .ce
  15992. The reject (REJ) supervisory frame is used by the DCE or DTE to request 
  15993. transmission of I\ frames starting with the frame numbered N(R). 
  15994. .ce
  15995. I\ frames numbered N(R)\ \(em\ 1 and below are acknowledged. Additional 
  15996. I\ frames 
  15997. .ce
  15998. pending initial transmission may be transmitted following the retransmitted
  15999. .ce
  16000. I\ frame(s).
  16001. .ce
  16002. .parag
  16003. .ce
  16004.  
  16005. .ce
  16006. Only one REJ exception condition for a given direction of information transfer 
  16007. may be established at any time. The REJ exception condition is cleared 
  16008. (reset) upon the receipt of an I\ frame with an N(S) equal to the N(R) 
  16009. of the 
  16010. .ce
  16011. REJ\ frame.
  16012. .ce
  16013. .parag
  16014. .ce
  16015. An REJ frame may be used to indicate the clearance of a busy condition 
  16016. that was reported by the earlier transmission of an RNR frame by that same 
  16017. .ce
  16018. station (DCE or\ DTE). In addition to indicating the DCE or DTE status, the
  16019. .ce
  16020. REJ\ command with the P bit set to\ 1 may be used by the DCE or\ DTE to ask for
  16021. .ce
  16022. the status of the DTE or\ DCE, respectively.
  16023. .ce
  16024. .parag
  16025. .ce
  16026. \fR 
  16027. .ce
  16028. 2.3.4.5
  16029. .ce
  16030. \fISet asynchronous balanced mode (SABM)\fR 
  16031. .ce
  16032. \fIcommand/\fR 
  16033. .ce
  16034. \fISet asynchronous balanced mode extended (SABME)\fR 
  16035. .ce
  16036.  
  16037. .ce
  16038. \fIcommand (subscription time option)\fR 
  16039. .ce
  16040. .parag
  16041. .ce
  16042.  
  16043. .ce
  16044. The SABM unnumbered command is used to place the addressed DCE or DTE in 
  16045. an asynchronous balanced mode (ABM) information transfer phase where all 
  16046. command/response control fields will be one\ octet in length. 
  16047. .ce
  16048. .parag
  16049. .ce
  16050. The SABME unnumbered command is used to place the addressed DCE or DTE 
  16051. in an asynchronous balanced mode\ (ABM) information transfer phase where 
  16052. .ce
  16053. numbered command/response control fields will be two octets in length, and
  16054. .ce
  16055. unnumbered command/response control fields will be one octet in length.
  16056. .ce
  16057. .parag
  16058. .ce
  16059.  
  16060. .ce
  16061. No information field is permitted with the SABM or SABME command. The transmission 
  16062. of a SABM/SABME command indicates the clearance of a busy 
  16063. .ce
  16064. condition that was reported by the earlier trans
  16065. .ce
  16066. mission\ of an RNR\ frame by   that
  16067. .ce
  16068. same station (DCE or\ DTE). The DCE or DTE confirms acceptance of SABM/SABME
  16069. .ce
  16070. [modulo\ 8 (basic) operation/modulo\ 128 (extended) operation] command by the
  16071. .ce
  16072. transmission, at the first opportunity, of a UA\ response. Upon acceptance of
  16073. .ce
  16074. this command, the DCE or DTE send state variable\ V(S) and receive state
  16075. .ce
  16076. variable V(R) are set to\ 0.
  16077. .ce
  16078. .parag
  16079. .ce
  16080. Previously transmitted I\ frames that are unacknowledged when this
  16081. .ce
  16082. command is actioned remain unac
  16083. .ce
  16084. knowledged.\ It is the responsibility of a
  16085. .ce
  16086. higher layer (e.g.\ Packet Layer or MLP) to recover from the possible loss of
  16087. .ce
  16088. the contents (e.g.\ packets) of such I\ frames.
  16089. .ce
  16090. .parag
  16091. .ce
  16092. \fINote\fR 
  16093. .ce
  16094. \ \(em\ The mode of operation of a data link [basic (modulo 8) or
  16095. .ce
  16096. extended (modulo\ 128)] is determined at subscription time and is only 
  16097. changed by going through a new subscription process. 
  16098. .ce
  16099. .parag
  16100. .ce
  16101. 2.3.4.6
  16102. .ce
  16103. \fIDisconnect (DISC)\fR 
  16104. .ce
  16105. \fI command\fR 
  16106. .ce
  16107. .parag
  16108. .ce
  16109. The DISC unnumbered command is used to terminate the mode
  16110. .ce
  16111. previously set. It is used to inform the DCE or DTE receiving the DISC 
  16112. command that the DTE or DCE sending the DISC command is suspending operation. 
  16113. No 
  16114. .ce
  16115. information field is permitted with the DISC command. Prior to actioning the
  16116. .ce
  16117. DISC command, the DCE or DTE receiving the DISC command confirms the acceptance 
  16118. of the DISC command by the transmission of a UA response. The DTE or DCE 
  16119. .ce
  16120. sending the DISC command enters the disconnected phase when it receives the
  16121. .ce
  16122. acknowledging UA response.
  16123. .ce
  16124. .parag
  16125. .ce
  16126. Previously transmitted I frames that are unacknowledged when this
  16127. .ce
  16128. command is actioned remain unacknowledged. It is the responsibility of 
  16129. a higher layer (e.g.\ Packet Layer or MLP) to recover from the possible 
  16130. loss of the 
  16131. .ce
  16132. contents (e.g.,\ packets) of such I frames.
  16133. .ce
  16134. .parag
  16135. .ce
  16136. 2.3.4.7
  16137. .ce
  16138. \fIUnnumbered acknowledgement (UA)\fR 
  16139. .ce
  16140. \fI response\fR 
  16141. .ce
  16142. .parag
  16143. .ce
  16144. The UA unnumbered response is used by the DCE or DTE to acknowledge the 
  16145. receipt and acceptance of the mode\(hysetting commands. Received mode\(hysetting 
  16146. commands are not actioned until the UA response is transmitted. The 
  16147. .ce
  16148. transmission of a UA response indicates the clearance of a busy condition 
  16149. that was reported by the earlier transmission of an RNR frame by that same 
  16150. station (DCE or DTE). No information field is permitted with the UA response. 
  16151. .ce
  16152. .parag
  16153. .ce
  16154.  
  16155. .ce
  16156. 2.3.4.8
  16157. .ce
  16158. \fIDisconnected mode (DM)\fR 
  16159. .ce
  16160. \fI response\fR 
  16161. .ce
  16162. .parag
  16163. .ce
  16164. The DM unnumbered response is used to report a status where the DCE or 
  16165. DTE is logically disconnected from the data link, and is in the disconnected 
  16166. phase. The DM response may be sent to indicate that the DCE or DTE has 
  16167. entered the disconnected phase without benefit of having received a DISC 
  16168. command, or, if sent in response to the reception of a mode setting command, 
  16169. is sent to 
  16170. .ce
  16171. inform the DTE or DCE that the DCE or DTE, respectively, is still in the
  16172. .ce
  16173. disconnected phase and cannot execute the set mode command. No information
  16174. .ce
  16175. field is permitted with the DM response.
  16176. .ce
  16177. .parag
  16178. .ce
  16179. A DCE or DTE in a disconnected phase will monitor received commands
  16180. .ce
  16181. and will react to an SABM/SABME command as outlined in \(sc\ 2.4.4 below, 
  16182. and will respond with a DM response with the F bit set to\ 1 to any other 
  16183. command 
  16184. .ce
  16185. received with the P\ bit set to\ 1.
  16186. .ce
  16187. .parag
  16188. .ce
  16189. 2.3.4.9
  16190. .ce
  16191. \fIFrame reject (FRMR)\fR 
  16192. .ce
  16193. \fI response\fR 
  16194. .ce
  16195. .parag
  16196. .ce
  16197. The FRMR unnumbered response is used by the DCE or DTE to report an error 
  16198. condition not recoverable by retransmission of the identical frame; 
  16199. .ce
  16200. i.e.\ at least one of the following conditions, which results from the 
  16201. receipt of a valid frame: 
  16202. .ce
  16203. .parag
  16204. .ce
  16205. 1)
  16206. .ce
  16207. the receipt of a command or response control field that is
  16208. .ce
  16209. undefined or not implemented;
  16210. .ce
  16211. .parag
  16212. .ce
  16213. 2)
  16214. .ce
  16215. the receipt of an I frame with an information field which
  16216. .ce
  16217. exceeds the maximum established length;
  16218. .ce
  16219. .parag
  16220. .ce
  16221. 3)
  16222. .ce
  16223. the receipt of an invalid N(R); or
  16224. .ce
  16225. .parag
  16226. .ce
  16227. 4)
  16228. .ce
  16229. the receipt of a frame with an information field which is
  16230. .ce
  16231. not permitted or the receipt of a supervisory or unnumbered
  16232. .ce
  16233. frame with incorrect length.
  16234. .ce
  16235. .parag
  16236. .ce
  16237. An undefined or not implemented control field is any of the
  16238. .ce
  16239. control field encodings that are not identified in Tables\ 5/X.25 or\ 6/X.25.
  16240. .ce
  16241. .parag
  16242. .ce
  16243.  
  16244. .ce
  16245. A valid N(R) must be within the range from the lowest send sequence
  16246. .ce
  16247. number N(S) of the still unacknowledged frame(s) to the current DCE send 
  16248. state variable inclusive (or to the current internal variable \fIx\fR 
  16249. .ce
  16250. if the DCE is in
  16251. .ce
  16252. the timer recovery condition as described in \(sc\ 2.4.5.9).
  16253. .ce
  16254. .parag
  16255. .ce
  16256.  
  16257. .ce
  16258. An information field which immediately follows the control field, and consists 
  16259. of\ 3 or 5\ octets [modulo\ 8 (basic) operation or modulo\ 128 (extended) 
  16260. operation, respectively], is returned with this response and provides the 
  16261. .ce
  16262. reason for the FRMR response. These formats are given in Tables\ 7/X.25
  16263. .ce
  16264. and\ 8/X.25.
  16265. .ce
  16266. .parag
  16267. .ce
  16268. 2.3.5
  16269. .ce
  16270. \fIException condition reporting and recovery\fR 
  16271. .ce
  16272. .parag
  16273. .ce
  16274. The error recovery procedures which are available to effect
  16275. .ce
  16276. recovery following the detection/occurrence of an 
  16277. .ce
  16278. exception condition
  16279. .ce
  16280.  at the Data Link Layer are described below. Exception conditions described 
  16281. are those situations which may occur as the result of transmission errors, 
  16282. DCE or DTE malfunction, or operational situations. 
  16283. .ce
  16284. .parag
  16285. .ce
  16286. 2.3.5.1
  16287. .ce
  16288. \fIBusy condition\fR 
  16289. .ce
  16290. .parag
  16291. .ce
  16292. The busy condition results when the DCE or DTE is temporarily
  16293. .ce
  16294. unable to continue to receive I frames due to internal constraints,
  16295. .ce
  16296. e.g.\ receive buffering limitations. In this case an RNR frame is transmitted
  16297. .ce
  16298. from the busy DCE or DTE. I\ frames pending transmission may be transmitted 
  16299. from the busy DCE or DTE prior to or following the RNR\ frame. 
  16300. .ce
  16301. .parag
  16302. .ce
  16303. An indication that the busy condition has cleared is communicated by the 
  16304. transmission of a UA (only in response to a SABM/SABME command), RR, REJ 
  16305. or SABM/SABME (modulo\ 8/modulo\ 128) frame. 
  16306. .ce
  16307. .parag
  16308. .ce
  16309. .line
  16310. .ce
  16311. \fBTable 7/X.25 [T7.25], p.\fR 
  16312. .ce
  16313. .line
  16314. .ce
  16315. \fBTable 8/X.25 [T8.25], p.\fR 
  16316. .ce
  16317. 2.3.5.2
  16318. .ce
  16319. \fIN(S) sequence error condition\fR 
  16320. .ce
  16321. .parag
  16322. .ce
  16323. The information field of all I frames received whose N(S) does not equal 
  16324. the receive state variable V(R) will be discarded. 
  16325. .ce
  16326. .parag
  16327. .ce
  16328. An N(S) sequence error exception condition occurs in the receiver when 
  16329. an I\ frame received contains an N(S) which is not equal to the receive 
  16330. state 
  16331. .ce
  16332. variable V(R) at the receiver. The receiver does not acknowledge (increment 
  16333. its receive state variable) the I\ frame causing the sequence error, or 
  16334. any I\ frame which may follow, until an I\ frame with the correct N(S) 
  16335. is received. 
  16336. .ce
  16337. .parag
  16338. .ce
  16339.  
  16340. .ce
  16341. A DCE or DTE which receives one or more valid I frames having sequence 
  16342. errors or subsequent supervisory frames (RR, RNR and REJ) shall accept 
  16343. the 
  16344. .ce
  16345. control information contained in the N(R) field and the P or F bit to perform 
  16346. data link control functions; e.g.\ to receive acknowledgement of previously 
  16347. .ce
  16348. transmitted I\ frames and to cause the DCE or DTE to respond (P bit set to 1).
  16349. .ce
  16350. .parag
  16351. .ce
  16352.  
  16353. .ce
  16354. The means specified in \(sc\(sc\ 2.3.5.2.1 and 2.3.5.2.2 shall be available 
  16355. for initiating the retransmission of lost or errored I\ frames following 
  16356. the 
  16357. .ce
  16358. occurrence of an N(S) sequence error condition.
  16359. .ce
  16360. .parag
  16361. .ce
  16362. 2.3.5.2.1
  16363. .ce
  16364. \fIREJ recovery\fR 
  16365. .ce
  16366. .parag
  16367. .ce
  16368. The REJ frame is used by a receiving DCE or DTE to initiate a
  16369. .ce
  16370. recovery (retransmission) following the detection of an N(S) sequence error.
  16371. .ce
  16372. .parag
  16373. .ce
  16374.  
  16375. .ce
  16376. With respect to each direction of transmission on the data link, only one 
  16377. \*Qsent REJ\*U exception condition from a DCE or DTE, to a DTE or DCE, 
  16378. is 
  16379. .ce
  16380. established at a time. A \*Qsent REJ\*U exception condition is cleared when the
  16381. .ce
  16382. requested I\ frame is received.
  16383. .ce
  16384. .parag
  16385. .ce
  16386.  
  16387. .ce
  16388. A DCE or DTE receiving a REJ frame initiates sequential
  16389. .ce
  16390. (re\(hy)transmission of I\ frames starting with the I\ frame indicated 
  16391. by the N(R) contained in the REJ frame. The retransmitted frames may contain 
  16392. an N(R) and a P bit that are updated from, and therefore different from, 
  16393. the ones contained in the originally transmitted I\ frames. 
  16394. .ce
  16395. .parag
  16396. .ce
  16397. 2.3.5.2.2
  16398. .ce
  16399. \fITime\(hyout recovery\fR 
  16400. .ce
  16401. .parag
  16402. .ce
  16403. If a DCE or DTE, due to a transmission error, does not receive (or receives 
  16404. and discards) a single I\ frame or the last I\ frame(s) in a sequence of 
  16405. I\ frames, it will not detect an N(S) sequence error condition and, therefore, 
  16406. will not transmit a REJ frame. The DTE or DCE which transmitted the 
  16407. .ce
  16408. unacknowledged I\ frame(s) shall, following the completion of a system 
  16409. specified time\(hyout period (see \(sc\(sc\ 2.4.5.1 and 2.4.5.9 below), 
  16410. take appropriate recovery action to determine at which I\ frame retransmission 
  16411. must begin. The 
  16412. .ce
  16413. retransmitted frame(s) may contain an N(R) and a P bit that is updated from,
  16414. .ce
  16415. and therefore different from, the ones contained in the originally transmitted 
  16416. frame(s). 
  16417. .ce
  16418. .parag
  16419. .ce
  16420. 2.3.5.3
  16421. .ce
  16422. \fIInvalid frame\fR 
  16423. .ce
  16424. \fI condition\fR 
  16425. .ce
  16426. .parag
  16427. .ce
  16428. Any frame which is invalid will be discarded, and no action is
  16429. .ce
  16430. taken as the result of that frame. An invalid frame is defined as one
  16431. .ce
  16432. which:
  16433. .ce
  16434. .parag
  16435. .ce
  16436. a)
  16437. .ce
  16438. is not properly bounded by two flags;
  16439. .ce
  16440. .parag
  16441. .ce
  16442. b)
  16443. .ce
  16444. in basic (modulo 8) operation, contains fewer than 32 bits
  16445. .ce
  16446. between flags; in extended (modulo\ 128) operation, contains
  16447. .ce
  16448. fewer than 40\ bits between flags of frames that contain sequence
  16449. .ce
  16450. numbers or 32\ bits between flags of frames that do not contain
  16451. .ce
  16452. sequence numbers;
  16453. .ce
  16454. .parag
  16455. .ce
  16456. c)
  16457. .ce
  16458. contains a Frame Check Sequence (FCS) error; or
  16459. .ce
  16460. .parag
  16461. .ce
  16462. d)
  16463. .ce
  16464. contains an address other than A or B (for single link
  16465. .ce
  16466. operation) or other than C or D (for multilink operation).
  16467. .ce
  16468. .parag
  16469. .ce
  16470.  
  16471. .ce
  16472. For those networks that are octet aligned, a detection of
  16473. .ce
  16474. non\(hyoctet alignment may be made at the Data Link Layer by adding a frame
  16475. .ce
  16476. validity check that requires the number of bits between the opening flag and
  16477. .ce
  16478. the closing flag, excluding bits inserted for transparency, to be an integral 
  16479. number of octets in length, or the frame is considered invalid. 
  16480. .ce
  16481. .parag
  16482. .ce
  16483. 2.3.5.4
  16484. .ce
  16485. \fIFrame rejection\fR 
  16486. .ce
  16487. \fI condition\fR 
  16488. .ce
  16489. .parag
  16490. .ce
  16491. A frame rejection condition is established upon the receipt of an error\(hyfree 
  16492. frame with one of the conditions listed in \(sc\ 2.3.4.9 above. 
  16493. .ce
  16494. .parag
  16495. .ce
  16496.  
  16497. .ce
  16498. At the DCE or DTE, this frame rejection exception condition is
  16499. .ce
  16500. reported by an FRMR response for appropriate DTE or DCE action, respectively. 
  16501. Once a DCE has established such an exception condition, no additional I\ 
  16502. frames are accepted until the condition is reset by the DTE, except for 
  16503. examination of the P bit. The FRMR response may be repeated at each opportunity, 
  16504. as specified in \(sc\ 2.4.7.3, until recovery is effected by the DTE, or 
  16505. until the DCE initiates its own recovery in case the DTE does not respond. 
  16506. .ce
  16507. .parag
  16508. .ce
  16509. 2.3.5.5
  16510. .ce
  16511. \fIExcessive idle channel state condition on incoming\fR 
  16512. .ce
  16513.  
  16514. .ce
  16515. \fIchannel\fR 
  16516. .ce
  16517. .parag
  16518. .ce
  16519. Upon detection of an idle channel state condition (see \(sc\ 2.2.12.2 above) 
  16520. on the incoming channel, the DCE shall wait for a period\ T3 (see 
  16521. .ce
  16522. \(sc\ 2.4.8.3 below) without taking any specific action, waiting for detection 
  16523. of a return to the active channel state (i.e.,\ detection of at least one 
  16524. flag 
  16525. .ce
  16526. sequence). After the period\ T3, the DCE shall notify the higher layer 
  16527. (e.g.\ the Packet Layer or the MLP) of the excessive idle channel state 
  16528. condition, but 
  16529. .ce
  16530. shall not take any action that would preclude the DTE from establishing the
  16531. .ce
  16532. data link by normal data link set\(hyup procedures.
  16533. .ce
  16534. .parag
  16535. .ce
  16536. \fINote\fR 
  16537. .ce
  16538. \ \(em\ Other actions to be taken by the DCE at the Data Link Layer upon 
  16539. expiration of period\ T3 is a subject for further study. 
  16540. .ce
  16541. .parag
  16542. .ce
  16543.  
  16544. .ce
  16545. 2.4
  16546. .ce
  16547. \fIDescription of the \fR 
  16548. .ce
  16549. \fILAPB procedure\fR 
  16550. .ce
  16551. .parag
  16552. .ce
  16553. 2.4.1
  16554. .ce
  16555. \fILAPB basic and extended modes of operation\fR 
  16556. .ce
  16557. .parag
  16558. .ce
  16559. In accordance with the system choice made by the DTE at
  16560. .ce
  16561. subscription time, the DCE will either support modulo\ 8 (basic) operation or
  16562. .ce
  16563. will support modulo\ 128 (extended) operation. Changing from basic operation 
  16564. to extended operation, or vice versa, in the DCE requires resubscription 
  16565. by the 
  16566. .ce
  16567. DTE for the desired service, and is not supported dynamically.
  16568. .ce
  16569. .parag
  16570. .ce
  16571. Table 5/X.25 indicates the command and response control field formats used 
  16572. with the basic (modulo\ 8) service. The mode\(hysetting command employed 
  16573. to 
  16574. .ce
  16575. initialize (set up) or reset the basic mode is the SABM command. Table 
  16576. 6/X.25 indicates the command and response control field formats used with 
  16577. the extended (modulo\ 128) service. The mode\(hysetting command employed 
  16578. to initialize (set up) or reset the extended mode is the SABME command. 
  16579. .ce
  16580. .parag
  16581. .ce
  16582. 2.4.2
  16583. .ce
  16584. \fILAPB procedure for addressing\fR 
  16585. .ce
  16586. .parag
  16587. .ce
  16588. The address field identifies a frame as either a command or a
  16589. .ce
  16590. response. A command frame contains the address of the DCE or DTE to which 
  16591. the command is being sent. A response frame contains the address of the 
  16592. DCE or DTE sending the frame. 
  16593. .ce
  16594. .parag
  16595. .ce
  16596. In order to allow differentiation between single link operation and
  16597. .ce
  16598. the optional multilink operation for diagnostic and/or maintenance reasons,
  16599. .ce
  16600. different address pair encodings are assigned to data links operating with
  16601. .ce
  16602. multilink procedure compared to data links operating with the single link
  16603. .ce
  16604. procedure.
  16605. .ce
  16606. .parag
  16607. .ce
  16608. Frames containing commands transferred from the DCE to the DTE will
  16609. .ce
  16610. contain the address\ A for the single link operation and address\ C for the
  16611. .ce
  16612. multilink operation.
  16613. .ce
  16614. .parag
  16615. .ce
  16616. Frames containing responses transferred from the DCE to the DTE will contain 
  16617. the address\ B for the single link operation and address\ D for the 
  16618. .ce
  16619. multilink operation.
  16620. .ce
  16621. .parag
  16622. .ce
  16623.  
  16624. .ce
  16625. Frames containing commands transferred from the DTE to the DCE shall contain 
  16626. the address\ B for the single link operation and address\ D for the 
  16627. .ce
  16628. multilink operation.
  16629. .ce
  16630. .parag
  16631. .ce
  16632. Frames containing responses transferred from the DTE to the DCE shall contain 
  16633. the address\ A for the single link operation and address\ C for the 
  16634. .ce
  16635. multilink operation.
  16636. .ce
  16637. .parag
  16638. .ce
  16639. These addresses are coded as follows:
  16640. .ce
  16641. .parag
  16642. .ce
  16643. Address
  16644. .ce
  16645. 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8
  16646. .ce
  16647. .parag
  16648. .ce
  16649. Single link operation
  16650. .ce
  16651. \ \ A
  16652. .ce
  16653. 1\ 1\ 0\ 0\ 0\ 0\ 0\ 0
  16654. .ce
  16655. .line
  16656. .ce
  16657. \ \ B
  16658. .ce
  16659. 1\ 0\ 0\ 0\ 0\ 0\ 0\ 0
  16660. .ce
  16661. .parag
  16662. .ce
  16663. Multilink operation
  16664. .ce
  16665. \ \ C
  16666. .ce
  16667. 1\ 1\ 1\ 1\ 0\ 0\ 0\ 0
  16668. .ce
  16669. .line
  16670. .ce
  16671. \ \ D
  16672. .ce
  16673. 1\ 1\ 1\ 0\ 0\ 0\ 0\ 0
  16674. .ce
  16675. .parag
  16676. .ce
  16677. \fINote\fR 
  16678. .ce
  16679. \ \(em\ The DCE will discard all frames received with an address other 
  16680. than\ A or\ B (single link operation), or\ C or\ D (multilink operation). 
  16681. .ce
  16682. .parag
  16683. .ce
  16684. 2.4.3
  16685. .ce
  16686. \fILAPB procedure for the use of the P/F bit\fR 
  16687. .ce
  16688. .parag
  16689. .ce
  16690. The DCE or DTE receiving an SABM/SABME, DISC, supervisory command or I\ 
  16691. frame with the P\ bit set to\ 1 will set the F\ bit to\ 1 in the next response 
  16692. frame it transmits. 
  16693. .ce
  16694. .parag
  16695. .ce
  16696. The response frame returned by the DCE to an SABM/SABME or DISC
  16697. .ce
  16698. command with the P\ bit set to\ 1 will be a UA or DM response with the 
  16699. F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  16700. with the P\ bit set to\ 1, received during the information transfer phase, 
  16701. will be an RR, REJ, RNR or FRMR response with the F\ bit set to\ 1. The 
  16702. response frame returned by the 
  16703. .ce
  16704. DCE to a supervisory command with the P\ bit set to\ 1, received during the
  16705. .ce
  16706. information transfer phase, will be an RR, REJ, RNR or FRMR response with 
  16707. the F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  16708. or 
  16709. .ce
  16710. supervisory frame with the P\ bit set to\ 1, received during the disconnected
  16711. .ce
  16712. phase, will be a DM response with the F\ bit set to\ 1.
  16713. .ce
  16714. .parag
  16715. .ce
  16716. The P bit may be used by the DCE in conjunction with the timer
  16717. .ce
  16718. recovery condition (see \(sc\ 2.4.5.9 below).
  16719. .ce
  16720. .parag
  16721. .ce
  16722. \fINote\fR 
  16723. .ce
  16724. \ \(em\ Other use of the P bit by the DCE is a subject for further
  16725. .ce
  16726. study.
  16727. .ce
  16728. .parag
  16729. .ce
  16730. 2.4.4
  16731. .ce
  16732. \fILAPB procedure for data link set\(hyup and disconnection\fR 
  16733. .ce
  16734. .parag
  16735. .ce
  16736.  
  16737. .ce
  16738. 2.4.4.1
  16739. .ce
  16740. \fIData link set\(hyup\fR 
  16741. .ce
  16742. .parag
  16743. .ce
  16744. The DCE will indicate that it is able to set up the data link by
  16745. .ce
  16746. transmitting contiguous flags (active channel state).
  16747. .ce
  16748. .parag
  16749. .ce
  16750. Either the DTE or the DCE may initiate data link set\(hyup. Prior to
  16751. .ce
  16752. initiation of data link set\(hyup, either the DCE or the DTE may initiate data
  16753. .ce
  16754. link
  16755. .ce
  16756. disconnection (see \(sc\ 2.4.4.3) for the purpose of insuring that the 
  16757. DCE and the DTE are in the same phase. The DCE may also transmit an unsolicited 
  16758. DM response to request the DTE to initiate data link set\(hyup. 
  16759. .ce
  16760. .parag
  16761. .ce
  16762. The DTE shall initiate data link set\(hyup by transmitting an SABM/SABME 
  16763. command to the DCE. If, upon receipt of the SABM/SABME command correctly, 
  16764. the DCE determines that it can enter the information transfer phase, it 
  16765. will return a UA response to the DTE, will reset its send and receive state 
  16766. variables V(S) and V(R) to zero, and will consider that the data link is 
  16767. set up. If, upon 
  16768. .ce
  16769. receipt
  16770. .ce
  16771. of the SABM/SABME command correctly, the DCE determines that it cannot enter
  16772. .ce
  16773. the information transfer phase, it will return a DM response to the DTE as a
  16774. .ce
  16775. denial to the data link set\(hyup initialization and will consider that the
  16776. .ce
  16777. data link is
  16778. .ce
  16779. \fInot\fR 
  16780. .ce
  16781.  set up. In order to avoid misinterpretation of the DM response received, 
  16782. it is suggested that the DTE always sends its SABM/SABME command with the 
  16783. P\ bit set to\ 1. Otherwise, it is not possible to differentiate a DM response 
  16784. intended as a denial to data link set\(hyup from a DM response that is 
  16785. issued in a separate unsolicited sense as a request for a mode\(hysetting 
  16786. command (as described 
  16787. .ce
  16788. in\ \(sc\ 2.4.4.4.2).
  16789. .ce
  16790. .parag
  16791. .ce
  16792. The DCE will initiate data link set\(hyup by transmitting an SABM/SABME 
  16793. command to the DTE and starting its Timer\ T1 in order to determine when 
  16794. too 
  16795. .ce
  16796. much time has elapsed waiting for a reply (see \(sc\ 2.4.8.1 below). Upon 
  16797. reception of a UA response from the DTE, the DCE will reset its send and 
  16798. receive state 
  16799. .ce
  16800. variables\ V(S) and\ V(R) to zero, will stop its Timer\ T1, and will consider 
  16801. that the data link is set up. Upon reception of a DM response from the 
  16802. DTE as a 
  16803. .ce
  16804. denial
  16805. .ce
  16806. to the data link set\(hyup initialization, the DCE will stop its Timer\ 
  16807. T1 and will consider that the data link is \fInot\fR 
  16808. .ce
  16809. set up.
  16810. .ce
  16811. .parag
  16812. .ce
  16813.  
  16814. .ce
  16815. The DCE, having sent the SABM/SABME command, will ignore and discard any 
  16816. frames except an SABM/SABME or DISC command, or a UA or DM response 
  16817. .ce
  16818. received from the DTE. The receipt of an SABM/SABME or DISC command from the
  16819. .ce
  16820. DTE will result in a collision situation that is resolved per \(sc\ 2.4.4.5 
  16821. below. Frames other than the UA and DM responses sent in response to a 
  16822. received 
  16823. .ce
  16824. SABM/SABME or DISC command will be sent only after the data link is set 
  16825. up and if no outstanding SABM/SABME command exists. 
  16826. .ce
  16827. .parag
  16828. .ce
  16829. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  16830. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  16831. .ce
  16832. resend the SABM/SABME command and will restart Timer\ T1. After transmission 
  16833. of the SABM/SABME command N2 times by the DCE, appropriate higher layer 
  16834. recovery action will be initiated. The value of N2 is defined in \(sc\ 
  16835. 2.4.8.4 below. 
  16836. .ce
  16837. .parag
  16838. .ce
  16839. 2.4.4.2
  16840. .ce
  16841. \fIInformation transfer phase\fR 
  16842. .ce
  16843. .parag
  16844. .ce
  16845. After having transmitted the UA response to the SABM/SABME command or having 
  16846. received the UA response to a transmitted SABM/SABME command, the DCE will 
  16847. accept and transmit I and supervisory frames according to the procedures 
  16848. described in \(sc\ 2.4.5 below. 
  16849. .ce
  16850. .parag
  16851. .ce
  16852.  
  16853. .ce
  16854. When receiving the SABM/SABME command while in the information
  16855. .ce
  16856. transfer phase, the DCE will conform to the data link resetting procedure
  16857. .ce
  16858. described in \(sc\ 2.4.7 below.
  16859. .ce
  16860. .parag
  16861. .ce
  16862. 2.4.4.3
  16863. .ce
  16864. \fIData link disconnection\fR 
  16865. .ce
  16866. .parag
  16867. .ce
  16868. The DTE shall initiate a disconnect of the data link by
  16869. .ce
  16870. transmitting a DISC command to the DCE. On correctly receiving a DISC command 
  16871. in the information transfer phase, the DCE will send a UA response and 
  16872. enter 
  16873. .ce
  16874. the disconnected phase. On correctly receiving a DISC command in the
  16875. .ce
  16876. disconnected phase, the DCE will send a DM response and remain in the
  16877. .ce
  16878. disconnected phase. In order to avoid misinterpretation of the DM response
  16879. .ce
  16880. received, it is suggested that the DTE always sends its DISC command with 
  16881. the P\ bit set to\ 1. Otherwise, it is not possible to differentiate a 
  16882. DM response 
  16883. .ce
  16884. intended as an indication that the DCE is already in the disconnected phase
  16885. .ce
  16886. from a DM response that is issued in a separate unsolicited sense as a 
  16887. request for a mode\(hysetting command (as described in \(sc\ 2.4.4.4.2). 
  16888. .ce
  16889. .parag
  16890. .ce
  16891.  
  16892. .ce
  16893. The DCE will initiate a disconnect of the data link by transmitting a DISC 
  16894. command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 below). 
  16895. Upon reception of an UA response from the DTE, the DCE will stop its Timer\ 
  16896. T1 and 
  16897. .ce
  16898. will enter the disconnected phase. Upon reception of a DM response from 
  16899. the DTE as an indication that the DTE was already in the disconnected phase, 
  16900. the DCE 
  16901. .ce
  16902. will stop its Timer\ T1 and will enter the disconnected phase.
  16903. .ce
  16904. .parag
  16905. .ce
  16906. The DCE, having sent the DISC command, will ignore and discard any
  16907. .ce
  16908. frames except an SABM/SABME or DISC command, or a UA or DM response received
  16909. .ce
  16910. from the DTE. The receipt of an SABM/SABME or DISC command from the DTE will
  16911. .ce
  16912. result in a collision situation that is resolved per \(sc\ 2.4.4.5 below.
  16913. .ce
  16914. .parag
  16915. .ce
  16916.  
  16917. .ce
  16918. After the DCE sends the DISC command, if a UA or DM response is not
  16919. .ce
  16920. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  16921. resend the DISC command and will restart Timer\ T1. After transmission 
  16922. of the DISC 
  16923. .ce
  16924. command N2 times by the DCE, appropriate higher layer recovery action will 
  16925. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  16926. .ce
  16927. .parag
  16928. .ce
  16929. 2.4.4.4
  16930. .ce
  16931. \fIDisconnected phase\fR 
  16932. .ce
  16933. .parag
  16934. .ce
  16935. 2.4.4.4.1
  16936. .ce
  16937. After having received a DISC command from the DTE and
  16938. .ce
  16939. returned a UA response to the DTE, or having received the UA response to a
  16940. .ce
  16941. transmitted DISC command, the DCE will enter the disconnected phase.
  16942. .ce
  16943. .parag
  16944. .ce
  16945. In the disconnected phase, the DCE may initiate data link set\(hyup. In 
  16946. the disconnected phase, the DCE will react to the receipt of an SABM/SABME 
  16947. command as described in \(sc\ 2.4.4.1 above and will transmit a DM response 
  16948. in 
  16949. .ce
  16950. answer to a received DISC command. When receiving any other command (defined, 
  16951. or undefined or not implemented) with the P\ bit set to\ 1, the DCE will 
  16952. transmit a DM response with the F\ bit set to\ 1. Other frames received 
  16953. in the 
  16954. .ce
  16955. disconnected phase will be ignored by the DCE.
  16956. .ce
  16957. .parag
  16958. .ce
  16959. 2.4.4.4.2
  16960. .ce
  16961. When the DCE enters the disconnected phase after
  16962. .ce
  16963. detecting error conditions as listed in \(sc\ 2.4.6 below, or after an internal
  16964. .ce
  16965. malfunction, it may indicate this by sending a DM response rather than 
  16966. a DISC command. In these cases, the DCE will transmit a DM response and 
  16967. start its 
  16968. .ce
  16969. Timer\ T1 (see \(sc\ 2.4.8.1 below).
  16970. .ce
  16971. .parag
  16972. .ce
  16973. If Timer T1 runs out before the reception of an SABM/SABME or DISC command 
  16974. from the DTE, the DCE will retransmit the DM response and restart 
  16975. .ce
  16976. Timer\ T1. After transmission of the DM response N2 times, the DCE will 
  16977. remain in the disconnected phase and appropriate recovery actions will 
  16978. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  16979. .ce
  16980. .parag
  16981. .ce
  16982. Alternatively, after an internal malfunction, the DCE may either
  16983. .ce
  16984. initiate a data link resetting procedure (see \(sc\ 2.4.7 below) or disconnect 
  16985. the data link (see \(sc\ 2.4.4.3 above) prior to initiating a data link 
  16986. set\(hyup 
  16987. .ce
  16988. procedure (see \(sc\ 2.4.4.1 above).
  16989. .ce
  16990. .parag
  16991. .ce
  16992. 2.4.4.5
  16993. .ce
  16994. \fICollision of unnumbered commands\fR 
  16995. .ce
  16996. .parag
  16997. .ce
  16998. Collision situations shall be resolved in the following way:
  16999. .ce
  17000. .parag
  17001. .ce
  17002. 2.4.4.5.1
  17003. .ce
  17004. If the sent and received unnumbered commands are the
  17005. .ce
  17006. same, the DCE and the DTE shall each send the UA response at the earliest
  17007. .ce
  17008. possible opportunity. The DCE shall enter the indicated phase either,
  17009. .ce
  17010. .parag
  17011. .ce
  17012.  
  17013. .ce
  17014. 1)
  17015. .ce
  17016. after receiving the UA response,
  17017. .ce
  17018. .parag
  17019. .ce
  17020. 2)
  17021. .ce
  17022. after sending the UA response, or
  17023. .ce
  17024. .parag
  17025. .ce
  17026. 3)
  17027. .ce
  17028. after timing out waiting for the UA response having sent a
  17029. .ce
  17030. UA response.
  17031. .ce
  17032. .parag
  17033. .ce
  17034. In the case of 2) above, the DCE will accept a subsequent UA
  17035. .ce
  17036. response to the mode\(hysetting command it issued without causing an exception
  17037. .ce
  17038. condition if received within the time\(hyout interval.
  17039. .ce
  17040. .parag
  17041. .ce
  17042.  
  17043. .ce
  17044. 2.4.4.5.2
  17045. .ce
  17046. If the sent and received unnumbered commands are
  17047. .ce
  17048. different, the DCE and the DTE shall each enter the disconnected phase and
  17049. .ce
  17050. issue a DM response at the earliest possible opportunity.
  17051. .ce
  17052. .parag
  17053. .ce
  17054. 2.4.4.6
  17055. .ce
  17056. \fICollision of DM response with SABM/SABME or DISC\fR 
  17057. .ce
  17058.  
  17059. .ce
  17060. \fIcommand\fR 
  17061. .ce
  17062. .parag
  17063. .ce
  17064. When a DM response is issued by the DCE or DTE as an unsolicited
  17065. .ce
  17066. response to request the DTE or DCE, respectively, to issue a mode\(hysetting
  17067. .ce
  17068. command as described in \(sc\ 2.4.4.4, a collision between an SABM/SABME 
  17069. or DISC 
  17070. .ce
  17071. command and the unsolicited DM response may occur. In order to avoid
  17072. .ce
  17073. misinterpretation of the DM response received, the DTE always sends its
  17074. .ce
  17075. SABM/SABME or DISC command with the P\ bit set to\ 1.
  17076. .ce
  17077. .parag
  17078. .ce
  17079. 2.4.4.7
  17080. .ce
  17081. \fICollision of DM responses\fR 
  17082. .ce
  17083. .parag
  17084. .ce
  17085. A contention situation may occur when both the DCE and the DTE
  17086. .ce
  17087. issue a DM response to request a mode\(hysetting command. In this case, the DTE
  17088. .ce
  17089. will issue an SABM/SABME command to resolve the contention situation.
  17090. .ce
  17091. .parag
  17092. .ce
  17093.  
  17094. .ce
  17095. 2.4.5
  17096. .ce
  17097. \fILAPB procedures for information transfer\fR 
  17098. .ce
  17099. .parag
  17100. .ce
  17101. The procedures which apply to the transmission of I\ frames in each direction 
  17102. during the information transfer phase are described below. 
  17103. .ce
  17104. .parag
  17105. .ce
  17106. In the following, \*Qnumber one higher\*U is in reference to a
  17107. .ce
  17108. continuously repeated sequence series, i.e., 7 is 1\ higher than 6 and 0 is
  17109. .ce
  17110. 1\ higher than 7 for modulo\ 8 series, and 127 is 1\ higher than 126 and 0 is
  17111. .ce
  17112. 1\ higher than 127 for modulo\ 128 series.
  17113. .ce
  17114. .parag
  17115. .ce
  17116. 2.4.5.1
  17117. .ce
  17118. \fISending I frames\fR 
  17119. .ce
  17120. .parag
  17121. .ce
  17122. When the DCE has an I frame to transmit (i.e. an I frame not
  17123. .ce
  17124. already transmitted, or having to be retransmitted as described in \(sc\ 
  17125. 2.4.5.6 
  17126. .ce
  17127. below), it will transmit it with an N(S) equal to its current send state
  17128. .ce
  17129. variable V(S), and an N(R) equal to its current receive state variable 
  17130. V(R). At the end of the transmission of the I\ frame, the DCE will increment 
  17131. its send 
  17132. .ce
  17133. state variable V(S) by\ 1.
  17134. .ce
  17135. .parag
  17136. .ce
  17137. If Timer T1 is not running at the time of transmission of an I frame, it 
  17138. will be started. 
  17139. .ce
  17140. .parag
  17141. .ce
  17142. If the send state variable V(S) is equal to the last value of N(R)
  17143. .ce
  17144. received plus \fIk\fR 
  17145. .ce
  17146. (where \fIk\fR 
  17147. .ce
  17148. is the maximum number of outstanding I\ frames \(em
  17149. .ce
  17150. see \(sc\ 2.4.8.6 below), the DCE will not transmit any new I\ frames, but may
  17151. .ce
  17152. retransmit an I\ frame as described in \(sc\(sc\ 2.4.5.6 or 2.4.5.9 below.
  17153. .ce
  17154. .parag
  17155. .ce
  17156. When the DCE is in the busy condition, it may still transmit I frames, 
  17157. provided that the DTE is not busy. When the DCE is in the frame rejection 
  17158. .ce
  17159. condition, it will stop transmitting I\ frames.
  17160. .ce
  17161. .parag
  17162. .ce
  17163. 2.4.5.2
  17164. .ce
  17165. \fIReceiving an I frame\fR 
  17166. .ce
  17167. .parag
  17168. .ce
  17169. 2.4.5.2.1
  17170. .ce
  17171. When the DCE is not in a busy condition and receives a valid I\ frame whose 
  17172. send sequence number N(S) is equal to the DCE receive state 
  17173. .ce
  17174. variable V(R), the DCE will accept the information field of this frame,
  17175. .ce
  17176. increment by one its receive state variable V(R), and act as follows:
  17177. .ce
  17178. .parag
  17179. .ce
  17180.  
  17181. .ce
  17182. a)
  17183. .ce
  17184. If the DCE is still not in a busy condition:
  17185. .ce
  17186. .parag
  17187. .ce
  17188. i)
  17189. .ce
  17190. If an I frame is available for transmission by the
  17191. .ce
  17192. DCE, it may act as in \(sc\ 2.4.5.1 above and acknowledge
  17193. .ce
  17194. the received I frame by setting N(R) in the control field
  17195. .ce
  17196. of the next transmitted I\ frame to the value of the DCE
  17197. .ce
  17198. receive state variable V(R). Alternatively, the DCE may
  17199. .ce
  17200. acknowledge the received I\ frame by transmitting an RR
  17201. .ce
  17202. frame with the N(R) equal to the value of the DCE receive
  17203. .ce
  17204. state variable V(R).
  17205. .ce
  17206. .parag
  17207. .ce
  17208. ii)
  17209. .ce
  17210. If no I frame is available for transmission by the
  17211. .ce
  17212. DCE, it will transmit an RR frame with N(R) equal to the
  17213. .ce
  17214. value of the DCE receive state variable V(R).
  17215. .ce
  17216. .parag
  17217. .ce
  17218.  
  17219. .ce
  17220. b)
  17221. .ce
  17222. If the DCE is now in a busy condition, it will transmit an
  17223. .ce
  17224. RNR frame with N(R) equal to the value of the DCE receive
  17225. .ce
  17226. state variable V(R) (see \(sc\ 2.4.5.8).
  17227. .ce
  17228. .parag
  17229. .ce
  17230.  
  17231. .ce
  17232. 2.4.5.2.2
  17233. .ce
  17234. When the DCE is in a busy condition, it may ignore the
  17235. .ce
  17236. information field contained in any received I\ frame.
  17237. .ce
  17238. .parag
  17239. .ce
  17240. 2.4.5.3
  17241. .ce
  17242. \fIReception of invalid frames\fR 
  17243. .ce
  17244. .parag
  17245. .ce
  17246. When the DCE receives an invalid frame (see \(sc\ 2.3.5.3), this frame 
  17247. will be discarded. 
  17248. .ce
  17249. .parag
  17250. .ce
  17251. 2.4.5.4
  17252. .ce
  17253. \fIReception of out\(hyof\(hysequence I frames\fR 
  17254. .ce
  17255. .parag
  17256. .ce
  17257. When the DCE receives a valid I frame whose send sequence number
  17258. .ce
  17259. N(S) is incorrect, i.e.,\ not equal to the current DCE receive state variable
  17260. .ce
  17261. V(R), it will discard the information field of the I\ frame and transmit 
  17262. an REJ frame with the N(R) set to one higher than the N(S) of the last 
  17263. correctly 
  17264. .ce
  17265. received I\ frame. The REJ frame will be a command frame with the P\ bit 
  17266. set to\ 1 if an acknowledged transfer of the retransmission request is 
  17267. required; 
  17268. .ce
  17269. otherwise the REJ frame may be either a command or a response frame. The DCE
  17270. .ce
  17271. will then discard the information field of all I\ frames received until the
  17272. .ce
  17273. expected I\ frame is correctly received. When receiving the expected I\ frame,
  17274. .ce
  17275. the DCE will then acknowledge the I\ frame as described in \(sc\ 2.4.5.2 
  17276. above. The DCE will use the N(R) and P\ bit information in the discarded 
  17277. I\ frames as 
  17278. .ce
  17279. described in \(sc\ 2.3.5.2 above.
  17280. .ce
  17281. .parag
  17282. .ce
  17283. 2.4.5.5
  17284. .ce
  17285. \fIReceiving acknowledgement\fR 
  17286. .ce
  17287. .parag
  17288. .ce
  17289. When correctly receiving an I frame or a supervisory frame (RR, RNR or 
  17290. REJ), even in the busy condition, the DCE will consider the N(R) contained 
  17291. in this frame as an acknowledgement for all I\ frames it has transmitted 
  17292. with an N(S) up to and including the received N(R)\(em1. The DCE will stop 
  17293. Timer\ T1 when it correctly receives an I\ frame or a supervisory frame 
  17294. with the N(R) higher 
  17295. .ce
  17296. than the last received N(R) (actually acknowledging some I\ frames), or 
  17297. an REJ frame with an N(R) equal to the last received N(R). 
  17298. .ce
  17299. .parag
  17300. .ce
  17301.  
  17302. .ce
  17303. If Timer T1 has been stopped by the receipt on an I, RR or RNR frame, and 
  17304. if there are outstanding I\ frames still unacknowledged, the DCE will 
  17305. .ce
  17306. restart Timer\ T1. If Timer\ T1 then runs out, the DCE will follow the 
  17307. recovery procedure (\(sc\ 2.4.5.9 below) with respect to the unacknowledged 
  17308. I\ frames. If 
  17309. .ce
  17310. Timer\ T1 has been stopped by the receipt of an REJ frame, the DCE will 
  17311. follow the retransmission procedures in \(sc\ 2.4.5.6 below. 
  17312. .ce
  17313. .parag
  17314. .ce
  17315. 2.4.5.6
  17316. .ce
  17317. \fIReceiving an REJ frame\fR 
  17318. .ce
  17319. .parag
  17320. .ce
  17321. When receiving an REJ frame, the DCE will set its send state
  17322. .ce
  17323. variable V(S) to the N(R) received in the REJ control field. It will transmit 
  17324. the corresponding I\ frame as soon as it is available or retransmit it 
  17325. in 
  17326. .ce
  17327. accordance with the procedures described in \(sc\ 2.4.5.1 above. (Re)transmission 
  17328. will conform to the following procedure: 
  17329. .ce
  17330. .parag
  17331. .ce
  17332. i)
  17333. .ce
  17334. if the DCE is transmitting a supervisory command or response
  17335. .ce
  17336. when it receives the REJ frame, it will complete that
  17337. .ce
  17338. transmission before commencing transmission of the requested
  17339. .ce
  17340. I\ frame;
  17341. .ce
  17342. .parag
  17343. .ce
  17344.  
  17345. .ce
  17346. ii)
  17347. .ce
  17348. if the DCE is transmitting an unnumbered command or
  17349. .ce
  17350. response when it receives the REJ frame, it will ignore the
  17351. .ce
  17352. request for retransmission;
  17353. .ce
  17354. .parag
  17355. .ce
  17356. iii)
  17357. .ce
  17358. if the DCE is transmitting an I frame when the REJ frame
  17359. .ce
  17360. is received, it may abort the I\ frame and commence transmission
  17361. .ce
  17362. of the requested I\ frame immediately after abortion;
  17363. .ce
  17364. .parag
  17365. .ce
  17366. iv)
  17367. .ce
  17368. if the DCE is not transmitting any frame when the REJ frame
  17369. .ce
  17370. is received, it will commence transmission of the requested
  17371. .ce
  17372. I\ frame immediately.
  17373. .ce
  17374. .parag
  17375. .ce
  17376. In all cases, if other unacknowledged I frames had already been
  17377. .ce
  17378. transmitted following the one indicated in the REJ frame, then those I 
  17379. frames will be retransmitted by the DCE following the retransmission of 
  17380. the requested I\ frame. Other I\ frames not yet transmitted may be transmitted 
  17381. following the 
  17382. .ce
  17383. retransmitted I\ frames.
  17384. .ce
  17385. .parag
  17386. .ce
  17387. If the REJ frame was received from the DTE as a command with the P bit 
  17388. set to\ 1, the DCE will transmit an RR, RNR or REJ response with the F 
  17389. bit set to\ 1 before transmitting or retransmitting the corresponding I\ 
  17390. frame. 
  17391. .ce
  17392. .parag
  17393. .ce
  17394. 2.4.5.7
  17395. .ce
  17396. \fIReceiving an RNR frame\fR 
  17397. .ce
  17398. .parag
  17399. .ce
  17400. After receiving an RNR frame whose N(R) acknowledges all frames
  17401. .ce
  17402. previously transmitted, the DCE will stop Timer\ T1 and may then transmit
  17403. .ce
  17404. an I\ frame, with the P\ bit set to\ 0, whose send sequence number is
  17405. .ce
  17406. equal to the N(R) indicated in the RNR frame, restarting Timer\ T1 as it 
  17407. does. After receiving an RNR frame whose N(R) indicates a previously transmitted 
  17408. .ce
  17409. frame, the DCE will not transmit or retransmit any I\ frame, Timer\ T1 being
  17410. .ce
  17411. already running. In either case, if the Timer\ T1 runs out before receipt 
  17412. of a busy clearance indication, the DCE will follow the procedure described 
  17413. in 
  17414. .ce
  17415. \(sc\ 2.4.5.9\ below. In any case, the DCE will not transmit any other 
  17416. I\ frames 
  17417. .ce
  17418. before receiving an RR or REJ frame, or before the completion of a link
  17419. .ce
  17420. resetting procedure.
  17421. .ce
  17422. .parag
  17423. .ce
  17424. Alternatively, after receiving an RNR frame, the DCE may wait for a
  17425. .ce
  17426. period of time (e.g.,\ the length of the Timer\ T1) and then transmit a
  17427. .ce
  17428. supervisory command frame (RR, RNR or REJ) with the P\ bit set to\ 1, and 
  17429. start Timer\ T1, in order to determine if there is any change in the receive 
  17430. status of the DTE. The DTE shall respond to the P\ bit set to\ 1 with a 
  17431. supervisory 
  17432. .ce
  17433. response frame (RR, RNR or REJ) with the F\ bit set to\ 1 indicating either
  17434. .ce
  17435. continuance of the busy condition (RNR) or clearance of the busy condition 
  17436. (RR or REJ). Upon receipt of the DTE response, Timer\ T1 is stopped. 
  17437. .ce
  17438. .parag
  17439. .ce
  17440.  
  17441. .ce
  17442. 1)
  17443. .ce
  17444. If the response is the RR or REJ response, the busy
  17445. .ce
  17446. condition is cleared and the DCE may transmit I\ frames beginning
  17447. .ce
  17448. with the I\ frame identified by the N(R) in the received response
  17449. .ce
  17450. frame.
  17451. .ce
  17452. .parag
  17453. .ce
  17454. 2)
  17455. .ce
  17456. If the response is the RNR response, the busy condition
  17457. .ce
  17458. still exists, and the DCE will after a period of time (e.g.\ the
  17459. .ce
  17460. length of Timer\ T1) repeat the enquiry of the DTE receive
  17461. .ce
  17462. status.
  17463. .ce
  17464. .parag
  17465. .ce
  17466. If Timer T1 runs out before a status response is received, the
  17467. .ce
  17468. enquiry process above is repeated. If N2 attempts to get a status response 
  17469. fail (i.e.\ Timer\ T1 runs out N2\ times), the DCE will initiate a data 
  17470. link resetting procedure as described in \(sc\ 2.4.7.2\ below or will transmit 
  17471. a DM response to ask the DTE to initiate a data link set\(hyup procedure 
  17472. as described in \(sc\ 2.4.4.1 and enter the disconnected phase. The value 
  17473. of N2 is defined in \(sc\ 2.4.8.4\ below. 
  17474. .ce
  17475. .parag
  17476. .ce
  17477.  
  17478. .ce
  17479. If, at any time during the enquiry process, an unsolicited RR or REJ frame 
  17480. is received from the DTE, it will be considered to be an indication of 
  17481. .ce
  17482. clearance of the busy condition. Should the unsolicited RR or REJ frame be a
  17483. .ce
  17484. command frame with the P bit set to\ 1, the appropriate response frame 
  17485. with the F\ bit set to 1 must be transmitted before the DCE may resume 
  17486. transmission of 
  17487. .ce
  17488. I\ frames. If Timer\ T1 is running, the DCE will wait for the non\(hybusy 
  17489. response with the F bit set to\ 1 or will wait for Timer\ T1 to run out 
  17490. and then either 
  17491. .ce
  17492. may reinitiate the enquiry process in order to realize a successful P/F bit
  17493. .ce
  17494. exchange or may resume transmission of I frames beginning with the I\ frame
  17495. .ce
  17496. identified by the N(R) in the received RR or REJ frame.
  17497. .ce
  17498. .parag
  17499. .ce
  17500. 2.4.5.8
  17501. .ce
  17502. \fIDCE busy condition\fR 
  17503. .ce
  17504. .parag
  17505. .ce
  17506. When the DCE enters a busy condition, it will transmit an RNR frame at 
  17507. the earliest opportunity. The RNR frame will be a command frame with the 
  17508. P bit set to\ 1 if an acknowledged transfer of the busy condition indication 
  17509. is 
  17510. .ce
  17511. required; otherwise the RNR frame may be either a command or a response 
  17512. frame. While in the busy condition, the DCE will accept and process supervisory 
  17513. .ce
  17514. frames, will accept and process the contents of the N(R) fields of I\ frames,
  17515. .ce
  17516. and will return an RNR response with the F bit set to\ 1 if it receives a
  17517. .ce
  17518. supervisory command or I command frame with the P bit set to\ 1. To clear the
  17519. .ce
  17520. busy condition, the DCE will transmit either an REJ frame or an RR frame, with
  17521. .ce
  17522. N(R) set to the current receive state variable V(R), depending on whether or
  17523. .ce
  17524. not it discarded information fields of correctly received I\ frames. The REJ
  17525. .ce
  17526. frame or the RR frame will be a command frame with the P bit set to\ 1 if an
  17527. .ce
  17528. acknowledged transfer of the busy\(hyto\(hynon\(hybusy transition is required, 
  17529. otherwise the REJ frame or the RR frame may be either a command or a response 
  17530. frame. 
  17531. .ce
  17532. .parag
  17533. .ce
  17534.  
  17535. .ce
  17536. 2.4.5.9
  17537. .ce
  17538. \fIWaiting acknowledgement\fR 
  17539. .ce
  17540. .parag
  17541. .ce
  17542. The DCE maintains an internal transmission attempt variable which is set 
  17543. to\ 0 when the DCE sends a UA response, when the DCE receives a UA 
  17544. .ce
  17545. response or an RNR command or response, or when the DCE correctly receives 
  17546. an I\ frame or supervisory frame with the N(R) higher than the last received 
  17547. N(R) (actually acknowledging some outstanding I\ frames). 
  17548. .ce
  17549. .parag
  17550. .ce
  17551. If Timer T1 runs out waiting for the acknowledgement from the DTE for an 
  17552. I\ frame transmitted, the DCE will enter the timer recovery condition, 
  17553. add 
  17554. .ce
  17555. one to its transmission attempt variable and set an internal variable \fIx\fR 
  17556. .ce
  17557. to
  17558. .ce
  17559. the current value of its send state variable V(S). The DCE will then restart
  17560. .ce
  17561. Timer T1, set its send state variable V(S) to the last value of N(R) received 
  17562. from the DTE and retransmit the corresponding I\ frame with the P bit set 
  17563. to\ 1, or transmit an appropriate supervisory command frame (RR, RNR or 
  17564. REJ) with the P\ bit set to\ 1. 
  17565. .ce
  17566. .parag
  17567. .ce
  17568.  
  17569. .ce
  17570. The timer recovery condition is cleared when the DCE receives a valid supervisory 
  17571. frame with the F\ bit\ set to\ 1. 
  17572. .ce
  17573. .parag
  17574. .ce
  17575. If, while in the timer recovery condition, the DCE correctly receives a 
  17576. supervisory frame with the F bit set to\ 1 and with the N(R) within the 
  17577. range from its current send state variable V(S) to \fIx\fR 
  17578. .ce
  17579. included, it will clear the
  17580. .ce
  17581. timer recovery condition (including stopping Timer\ T1) and set its send 
  17582. state variable V(S) to the value of the received N(R), and may then resume 
  17583. with 
  17584. .ce
  17585. I\ frame transmission or retransmission, as appropriate.
  17586. .ce
  17587. .parag
  17588. .ce
  17589. If, while in the timer recovery condition, the DCE correctly receives an 
  17590. I or supervisory frame with the P/F bit set to\ 0 and with a valid N(R) 
  17591. (see \(sc\ 2.3.4.9), it will not clear the timer recovery condition. The 
  17592. value of the 
  17593. .ce
  17594. received N(R) may be used to update the send state variable V(S). However, 
  17595. the DCE may decide to keep the last transmitted I\ frame in store (even 
  17596. if it is 
  17597. .ce
  17598. acknowledged) in order to be able to retransmit it with the P bit set to\ 
  17599. 1 when Timer\ T1 runs out at a later time. 
  17600. .ce
  17601. .parag
  17602. .ce
  17603.  
  17604. .ce
  17605. If the received supervisory frame with the P/F bit set to\ 0 is an REJ 
  17606. frame with a valid N(R), the DCE may either immediately initiate 
  17607. .ce
  17608. (re)transmission from the value of the send state variable V(S), or it may
  17609. .ce
  17610. ignore the request for retransmission and wait until the supervisory frame 
  17611. with the F bit set to\ 1 is received before initiating (re)transmission 
  17612. of frames 
  17613. .ce
  17614. from the value identified in the N(R) field of the supervisory frame with 
  17615. the F\ bit set to\ 1. In the case of immediate retransmission, in order 
  17616. to prevent 
  17617. .ce
  17618. duplicate retransmissions following the clearance of the timer recovery
  17619. .ce
  17620. condition, the DCE shall inhibit retransmission of a specific I\ frame [same
  17621. .ce
  17622. N(R) in the same numbering cycle] if the DCE has retransmitted that I\ 
  17623. frame as the result of a received REJ frame with the P/F bit set to\ 0. 
  17624. .ce
  17625. .parag
  17626. .ce
  17627. If, while in the timer recovery condition, the DCE receives a REJ
  17628. .ce
  17629. command with the P bit set to\ 1, the DCE will respond immediately with an
  17630. .ce
  17631. appropriate supervisory response with the F bit set to\ 1. The DCE may 
  17632. then use the value of the N(R) in the REJ command to update the send state 
  17633. variable 
  17634. .ce
  17635. V(S), and may either immediately begin (re)transmission from the value N(R)
  17636. .ce
  17637. indicated in the REJ frame or ignore the request for retransmission and wait
  17638. .ce
  17639. until the supervisory frame with the F bit set to\ 1 is received before
  17640. .ce
  17641. initiating (re)transmission of I\ frames from the value identified in the 
  17642. N(R) field of the supervisory frame with the F\ bit set to\ 1. In the case 
  17643. of 
  17644. .ce
  17645. immediate retransmission, in order to prevent duplicate retransmissions
  17646. .ce
  17647. following the clearance of the timer recovery condition, the DCE shall 
  17648. inhibit retransmission of a specific I\ frame [same N(R) in the same numbering 
  17649. cycle] 
  17650. .ce
  17651. if the DCE has retransmitted that I\ frame as the result of the received REJ
  17652. .ce
  17653. command with the P\ bit set to\ 1.
  17654. .ce
  17655. .parag
  17656. .ce
  17657. If Timer T1 runs out in the timer recovery condition, and no I or
  17658. .ce
  17659. supervisory frame with the P/F bit set to 0 and with a valid N(R) has been
  17660. .ce
  17661. received, or no REJ command with the P bit set to\ 1 and with a valid N(R) 
  17662. has been received, the DCE will add one to its transmission attempt variable, 
  17663. .ce
  17664. restart Timer\ T1, and either retransmit the I frame sent with the P bit set
  17665. .ce
  17666. to\ 1 or transmit an appropriate supervisory command with the P bit set to\ 1.
  17667. .ce
  17668. .parag
  17669. .ce
  17670.  
  17671. .ce
  17672. If the transmission attempt variable is equal to N2, the DCE will
  17673. .ce
  17674. initiate a data link resetting procedure as described in \(sc\ 2.4.7.2 
  17675. below, or 
  17676. .ce
  17677. will transmit a DM response to ask the DTE to initiate a data link set\(hyup
  17678. .ce
  17679. procedure as described in \(sc\ 2.4.4.1 above and enter the disconnected 
  17680. phase. N2 is a system parameter (see \(sc\ 2.4.8.4 below). 
  17681. .ce
  17682. .parag
  17683. .ce
  17684. \fINote\fR 
  17685. .ce
  17686. \ \(em\ Although the DCE may implement the internal variable \fIx\fR 
  17687. .ce
  17688. ,
  17689. .ce
  17690. other mechanisms do exist that achieve the identical function.
  17691. .ce
  17692. .parag
  17693. .ce
  17694. 2.4.6
  17695. .ce
  17696. \fILAPB conditions for \fR 
  17697. .ce
  17698. \fIdata link resetting or data link\fR 
  17699. .ce
  17700.  
  17701. .ce
  17702. \fIre\(hyinitialization\fR 
  17703. .ce
  17704. \fI(data link set\(hyup)\fR 
  17705. .ce
  17706. .parag
  17707. .ce
  17708. 2.4.6.1
  17709. .ce
  17710. When the DCE receives, during the information transfer phase, a
  17711. .ce
  17712. frame which is not invalid (see \(sc\ 2.3.5.3) with one of the conditions 
  17713. listed in \(sc\ 2.3.4.9 above, the DCE will request the DTE to initiate 
  17714. a data link resetting procedure by transmitting an FRMR response to the 
  17715. DTE as described in 
  17716. .ce
  17717. \(sc\ 2.4.7.3.
  17718. .ce
  17719. .parag
  17720. .ce
  17721. 2.4.6.2
  17722. .ce
  17723. When the DCE receives, during the information transfer phase, an FRMR response 
  17724. from the DTE, the DCE will either initiate the data link 
  17725. .ce
  17726. resetting procedures itself as described in \(sc\ 2.4.7.2 or return a DM 
  17727. response to ask the DTE to initiate the data link set\(hyup (initialization) 
  17728. procedure as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  17729. the DCE will enter 
  17730. .ce
  17731. the disconnected phase as described in \(sc\ 2.4.4.4.2.
  17732. .ce
  17733. .parag
  17734. .ce
  17735. 2.4.6.3
  17736. .ce
  17737. When the DCE receives, during the information transfer phase, a UA response, 
  17738. or an unsolicited response with the F bit set to\ 1, the DCE may 
  17739. .ce
  17740. either initiate the data link resetting procedures itself as described in
  17741. .ce
  17742. \(sc\ 2.4.7.2, or return a DM response to ask the DTE to initiate the data link
  17743. .ce
  17744. set\(hyup (initialization) procedure as described in \(sc\ 2.4.4.1. After 
  17745. transmitting a DM response, the DCE will enter the disconnected phase as 
  17746. described in 
  17747. .ce
  17748. \(sc\ 2.4.4.4.2.
  17749. .ce
  17750. .parag
  17751. .ce
  17752. 2.4.6.4
  17753. .ce
  17754. When the DCE receives, during the information transfer phase, a DM response 
  17755. from the DTE, the DCE will either initiate the data link set\(hyup 
  17756. .ce
  17757. (initialization) procedures itself as described in \(sc\ 2.4.4.1, or return 
  17758. a DM 
  17759. .ce
  17760. response to ask the DTE to initiate the data link set\(hyup (initialization)
  17761. .ce
  17762. procedures as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  17763. the DCE will enter the disconnected phase as described in \(sc\ 2.4.4.4.2. 
  17764. .ce
  17765. .parag
  17766. .ce
  17767.  
  17768. .ce
  17769. 2.4.7
  17770. .ce
  17771. \fILAPB procedure for data link resetting\fR 
  17772. .ce
  17773. .parag
  17774. .ce
  17775. 2.4.7.1
  17776. .ce
  17777. The data link resetting procedure is used to initialize both
  17778. .ce
  17779. directions of information transfer according to the procedure described 
  17780. below. The data link resetting procedure only applies during the information 
  17781. transfer phase. 
  17782. .ce
  17783. .parag
  17784. .ce
  17785. 2.4.7.2
  17786. .ce
  17787. Either the DTE or the DCE may initiate the data link resetting
  17788. .ce
  17789. procedure. The data link resetting procedure indicates a clearance of a DCE
  17790. .ce
  17791. and/or DTE busy condition, if present.
  17792. .ce
  17793. .parag
  17794. .ce
  17795. The DTE shall initiate a data link resetting by transmitting an
  17796. .ce
  17797. SABM/SABME command to the DCE. If, upon correct receipt of the SABM/SABME
  17798. .ce
  17799. command, the DCE determines that it can continue in the information transfer
  17800. .ce
  17801. phase, it will return a UA response to the DTE, will reset its send and 
  17802. receive state variables V(S) and V(R) to zero, and will remain in the information 
  17803. .ce
  17804. transfer phase. If, upon correct receipt of the SABM/SABME command, the DCE
  17805. .ce
  17806. determines that it cannot remain in the information transfer phase, it will
  17807. .ce
  17808. return a DM response as a denial to the resetting request and will enter the
  17809. .ce
  17810. disconnected phase.
  17811. .ce
  17812. .parag
  17813. .ce
  17814. The DCE will initiate a data link resetting by transmitting an
  17815. .ce
  17816. SABM/SABME command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 
  17817. below). Upon reception of a UA response from the DTE, the DCE will reset 
  17818. its send and receive state variables V(S) and V(R) to zero, will stop its 
  17819. Timer\ T1, and will remain in the information transfer phase. Upon reception 
  17820. of a DM response from the DTE as a denial to the data link resetting request, 
  17821. the DCE will stop its Timer\ T1 and will enter the disconnected phase. 
  17822. .ce
  17823. .parag
  17824. .ce
  17825. The DCE, having sent an SABM/SABME command, will ignore and discard
  17826. .ce
  17827. any frames received from the DTE except an SABM/SABME or DISC command, 
  17828. or a UA or DM response. The receipt of an SABM/SABME or DISC command from 
  17829. the DTE will result in a collision situation that is resolved per \(sc\ 
  17830. 2.4.4.5 above. Frames 
  17831. .ce
  17832. other than the UA or DM response sent in response to a received SABM/SABME 
  17833. or DISC command will be sent only after the data link is reset and if no 
  17834. .ce
  17835. outstanding SABM/SABME command exists.
  17836. .ce
  17837. .parag
  17838. .ce
  17839.  
  17840. .ce
  17841. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  17842. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  17843. .ce
  17844. resend the SABM/SABME command and will restart Timer\ T1. After N2 attempts 
  17845. to reset the data link, the DCE will initiate appropriate higher layer 
  17846. recovery 
  17847. .ce
  17848. action and will enter the disconnected phase. The value of N2 is defined in
  17849. .ce
  17850. \(sc\ 2.4.8.4 below.
  17851. .ce
  17852. .parag
  17853. .ce
  17854. 2.4.7.3
  17855. .ce
  17856. The DCE may ask the DTE to reset the data link by transmitting an FRMR 
  17857. response (see \(sc\ 2.4.6.1 above). After transmitting an FRMR response, 
  17858. .ce
  17859. the DCE will enter the frame rejection condition.
  17860. .ce
  17861. .parag
  17862. .ce
  17863. The frame rejection condition is cleared when the DCE receives an SABM/SABME 
  17864. command, a DISC command, a FRMR response, or a DM response; or if 
  17865. .ce
  17866. the DCE transmits an SABM/SABME command, a DISC command, or a DM response.
  17867. .ce
  17868. Other commands received while in the frame rejection condition will cause 
  17869. the DCE to retransmit the FRMR response with the same information field 
  17870. as 
  17871. .ce
  17872. originally transmitted.
  17873. .ce
  17874. .parag
  17875. .ce
  17876. The DCE may start Timer\ T1 on transmission of the FRMR response. If
  17877. .ce
  17878. Timer\ T1 runs out before the frame rejection condition is cleared, the 
  17879. DCE may retransmit the FRMR response, and restart T1. After N2 attempts 
  17880. (time outs) to get the DTE to reset the data link, the DCE may reset the 
  17881. data link itself as described in \(sc\ 2.4.7.2 above. The value of N2 is 
  17882. defined in \(sc\ 2.4.8.4 below. 
  17883. .ce
  17884. .parag
  17885. .ce
  17886.  
  17887. .ce
  17888. In the frame rejection condition, I frames and supervisory frames will 
  17889. not be transmitted by the DCE. Also, received I frames and supervisory 
  17890. frames will be discarded by the DCE except for the observance of a P bit 
  17891. set to\ 1. 
  17892. .ce
  17893. When an additional FRMR response must be transmitted by the DCE as a result 
  17894. of the receipt of a P\ bit set to 1 while Timer\ T1 is running, Timer\ 
  17895. T1 will 
  17896. .ce
  17897. continue to run. Upon reception of an FRMR response (even during a frame
  17898. .ce
  17899. rejection condition), the DCE will initiate a resetting procedure by
  17900. .ce
  17901. transmitting an SABM/SABME command as described in \(sc\ 2.4.7.2 above, or will
  17902. .ce
  17903. transmit a DM response to ask the DTE to initiate the data link set\(hyup
  17904. .ce
  17905. procedure as described in \(sc\ 2.4.4.1 and enter the disconnected phase.
  17906. .ce
  17907. .parag
  17908. .ce
  17909. 2.4.8
  17910. .ce
  17911. \fIList of \fR 
  17912. .ce
  17913. \fILAPB system parameters\fR 
  17914. .ce
  17915. .parag
  17916. .ce
  17917. The DCE and DTE system parameters are as follows:
  17918. .ce
  17919. .parag
  17920. .ce
  17921.  
  17922. .ce
  17923. 2.4.8.1
  17924. .ce
  17925. \fITimer\fR 
  17926. .ce
  17927. \fIT1\fR 
  17928. .ce
  17929. .parag
  17930. .ce
  17931. The value of the DTE Timer T1 system parameter may be different
  17932. .ce
  17933. than the value of the DCE Timer T1 system parameter. These values shall 
  17934. be made known to both the DTE and the DCE, and agreed to for a period of 
  17935. time by both the DTE and the DCE. 
  17936. .ce
  17937. .parag
  17938. .ce
  17939. The period of Timer T1, at the end of which retransmission of a frame may 
  17940. be initiated (see \(sc\ 2.4.4 and \(sc\ 2.4.5 above for the DCE), shall 
  17941. take into account whether T1 is started at the beginning or the end of 
  17942. the transmission of a frame. 
  17943. .ce
  17944. .parag
  17945. .ce
  17946. The proper operation of the procedure requires that the transmitter's (DCE 
  17947. or DTE) Timer\ T1 be greater than the maximum time between transmission 
  17948. of a frame (SABM/SABME, DISC, I\ or supervisory command, or DM or FRMR 
  17949. response) 
  17950. .ce
  17951. and the reception of the corresponding frame returned as an answer to that
  17952. .ce
  17953. frame (UA, DM or acknowledging frame). Therefore, the receiver (DCE or DTE)
  17954. .ce
  17955. should not delay the response or acknowledging frame returned to one of the
  17956. .ce
  17957. above frames by more than a value\ T2, where T2 is a system parameter (see
  17958. .ce
  17959. \(sc\ 2.4.8.2).
  17960. .ce
  17961. .parag
  17962. .ce
  17963.  
  17964. .ce
  17965. The DCE will not delay the response or acknowledging frame returned to 
  17966. one of the above DTE frames by more than a period\ T2. 
  17967. .ce
  17968. .parag
  17969. .ce
  17970. 2.4.8.2
  17971. .ce
  17972. \fIParameter T2\fR 
  17973. .ce
  17974. .parag
  17975. .ce
  17976. The value of the DTE parameter T2 may be different than the value of the 
  17977. DCE parameter T2. These values shall be made known to both the DTE and 
  17978. the DCE, and agreed to for a period of time by both the DTE and the DCE. 
  17979. .ce
  17980. .parag
  17981. .ce
  17982.  
  17983. .ce
  17984. The period of parameter T2 shall indicate the amount of time
  17985. .ce
  17986. available at the DCE or DTE before the acknowledging frame must be initiated 
  17987. in order to ensure its receipt by the DTE or DCE, respectively, prior to 
  17988. Timer\ T1 running out at the DTE or DCE (parameter\ T2\ <\ Timer\ T1). 
  17989. .ce
  17990. .parag
  17991. .ce
  17992. \fINote\fR 
  17993. .ce
  17994. \ \(em\ The period of parameter T2 shall take into account the
  17995. .ce
  17996. following timing factors: the transmission time of the acknowledging frame, 
  17997. the propagation time over the access data link, the stated processing times 
  17998. at the DCE and the DTE, and the time to complete the transmission of the 
  17999. frame(s) in the DCE or DTE transmit queue that are neither displaceable 
  18000. or modifiable in an orderly manner. 
  18001. .ce
  18002. .parag
  18003. .ce
  18004.  
  18005. .ce
  18006. Given a value for Timer T1 for the DTE or DCE, the value of parameter T2 
  18007. at the DCE or DTE, respectively, must be no larger than T1 minus\ 2 times 
  18008. the propagation time over the access data link, minus the frame processing 
  18009. time at the DCE, minus the frame processing time at the DTE, and minus 
  18010. the transmission time of the acknowledging frame by the DCE or DTE, respectively. 
  18011. .ce
  18012. .parag
  18013. .ce
  18014.  
  18015. .ce
  18016. 2.4.8.3
  18017. .ce
  18018. \fITimer T3\fR 
  18019. .ce
  18020. .parag
  18021. .ce
  18022. The DCE shall support a Timer T3 system parameter, the value of
  18023. .ce
  18024. which shall be made known to the DTE.
  18025. .ce
  18026. .parag
  18027. .ce
  18028. The period of Timer T3, at the end of which an indication of an
  18029. .ce
  18030. observed excessively long idle channel state condition is passed to the 
  18031. Packet Layer, shall be sufficiently greater than the period of the DCE 
  18032. Timer T1 
  18033. .ce
  18034. (i.e.\ T3\ >\ T1) so that the expiration of T3 provides the desired level of
  18035. .ce
  18036. assurance that the data link channel is in a non\(hyactive, non\(hyoperational 
  18037. state, and is in need of data link set\(hyup before normal data link operation 
  18038. can 
  18039. .ce
  18040. resume.
  18041. .ce
  18042. .parag
  18043. .ce
  18044. 2.4.8.4
  18045. .ce
  18046. \fIMaximum number of attempts\fR 
  18047. .ce
  18048. \fIto complete a\fR 
  18049. .ce
  18050.  
  18051. .ce
  18052. \fItransmission N2\fR 
  18053. .ce
  18054. .parag
  18055. .ce
  18056.  
  18057. .ce
  18058. The value of the DTE N2 system parameter may be different than the value 
  18059. of the DCE N2 system parameter. These values shall be made known to both 
  18060. the DTE and the DCE, and agreed to for a period of time by both the DTE 
  18061. and the DCE. 
  18062. .ce
  18063. .parag
  18064. .ce
  18065. The value of N2 shall indicate the maximum number of attempts made by the 
  18066. DCE or DTE to complete the successful transmission of a frame to the DTE 
  18067. or DCE, respectively. 
  18068. .ce
  18069. .parag
  18070. .ce
  18071. 2.4.8.5
  18072. .ce
  18073. \fIMaximum number of bits in an I frame N1\fR 
  18074. .ce
  18075. .parag
  18076. .ce
  18077. The value of the DTE N1 system parameter may be different than the value 
  18078. of the DCE N1 system parameter. These values shall be made known to both 
  18079. the DTE and the DCE. 
  18080. .ce
  18081. .parag
  18082. .ce
  18083. The values of N1 shall indicate the maximum number of bits in an
  18084. .ce
  18085. I\ frame (excluding flags and 0\ bits inserted for transparency) that the 
  18086. DCE or DTE is willing to accept from the DTE or DCE, respectively. 
  18087. .ce
  18088. .parag
  18089. .ce
  18090. In order to allow for universal operation, a DTE should support a
  18091. .ce
  18092. value of DTE N1 which is not less than 1080\ bits (135\ octets). DTEs should 
  18093. be aware that the network may transmit longer packets (see \(sc\ 5.2), 
  18094. that may result in a data link layer problem. 
  18095. .ce
  18096. .parag
  18097. .ce
  18098.  
  18099. .ce
  18100. All networks shall offer to a DTE which requires it, a value of DCE N1 
  18101. which is greater than or equal to 2072\ bits (259\ octets) plus the length 
  18102. of the address, control and FCS fields at the DTE/DCE interface, and greater 
  18103. than or equal to the maximum length of the data packets which may cross 
  18104. the DTE/DCE 
  18105. .ce
  18106. interface plus the length of the address, control and FCS fields at the 
  18107. DTE/DCE interface. 
  18108. .ce
  18109. .parag
  18110. .ce
  18111. Appendix II provides a description of how the values stated above are  derived.
  18112. .ce
  18113. .parag
  18114. .ce
  18115. 2.4.8.6
  18116. .ce
  18117. \fIMaximum number of \fR 
  18118. .ce
  18119. \fIoutstanding I frames k\fR 
  18120. .ce
  18121. .parag
  18122. .ce
  18123. The value of the DTE k system parameter shall be the same as the
  18124. .ce
  18125. value of the DCE k system parameter. This value shall be agreed to for a
  18126. .ce
  18127. period of time by both the DTE and the DCE.
  18128. .ce
  18129. .parag
  18130. .ce
  18131. The value of k shall indicate the maximum number of sequentially
  18132. .ce
  18133. numbered I\ frames that the DTE or DCE may have outstanding
  18134. .ce
  18135. (i.e.\ unacknowledged) at any given time. The value of k shall never exceed
  18136. .ce
  18137. seven for modulo\ 8 operation, or one hundred and twenty\(hyseven for modulo\ 
  18138. 128 
  18139. .ce
  18140. operation. All networks (DCEs) shall support a value of seven. Other values 
  18141. of k (less than and greater than seven) may also be supported by networks 
  18142. .ce
  18143. (DCEs).
  18144. .ce
  18145. .parag
  18146. .ce
  18147. .line
  18148. .ce
  18149. \fBMONTAGE : \(sc 2.5 de cette Recommandation sur le reste de cette page\fR 
  18150. .ce
  18151. .parag
  18152. .ce
  18153.  
  18154. .ce
  18155. .line
  18156. .ad r
  18157. \fBTable 2/X.25 [T2.25], p.\fR 
  18158. .sp 1P
  18159. .RT
  18160. .ad b
  18161. .RT
  18162. .LP
  18163. .bp
  18164. .sp 1P
  18165. .LP
  18166. 2.2.2
  18167.     \fIFlag sequence\fR 
  18168. .sp 9p
  18169. .RT
  18170. .PP
  18171. All frames shall start and end with the flag sequence consisting of one 
  18172. 0\ bit followed by six contiguous 1\ bits and one 0\ bit. The DTE and DCE 
  18173. shall only send complete eight\(hybit flag sequences when sending multiple flag
  18174. sequences (see \(sc\ 2.2.11). A single flag may be used as both the 
  18175. closing
  18176. flag
  18177. for one frame and the 
  18178. opening flag
  18179. for the next frame.
  18180. .RT
  18181. .sp 1P
  18182. .LP
  18183. 2.2.3
  18184.     \fIAddress field\fR 
  18185. .sp 9p
  18186. .RT
  18187. .PP
  18188. The address field shall consist of one octet. The address field
  18189. identifies the intended receiver of a command frame and the transmitter of a
  18190. response frame. The coding of the address field is described in \(sc\ 2.4.2 
  18191. (LAPB) and in \(sc\ 2.7.1 (LAP) below. 
  18192. .RT
  18193. .sp 1P
  18194. .LP
  18195. 2.2.4
  18196.     \fIControl field\fR 
  18197. .sp 9p
  18198. .RT
  18199. .PP
  18200. For modulo\ 8 (basic) operation, the control field shall consist of one 
  18201. octet. For modulo\ 128 (extended) operation, the control field shall consist 
  18202. of two octets for frame formats that contain sequence numbers, and one 
  18203. octet 
  18204. for frame formats that do not contain sequence numbers. The content of this
  18205. field is described in \(sc\ 2.3.2\ (LAPB) and in \(sc\ 2.6.2 (LAP) below.
  18206. .RT
  18207. .sp 1P
  18208. .LP
  18209. 2.2.5
  18210.     \fIInformation field\fR 
  18211. .sp 9p
  18212. .RT
  18213. .PP
  18214. The information field of a frame, when present, follows the control field 
  18215. (see \(sc\ 2.2.4 above) and precedes the 
  18216. frame check sequence field
  18217. (see \(sc\ 2.2.7 below).
  18218. .PP
  18219. See \(sc\(sc 2.3.4.9, 2.5.2, 2.6.4.8 and 5 for the various codings and
  18220. groupings of bits in the information field as used in this Recommendation.
  18221. .PP
  18222. See \(sc\(sc 2.3.4.9, 2.4.8.5, 2.6.4.8 and 2.7.7.5 below with regard to 
  18223. the maximum information field length. 
  18224. .RT
  18225. .sp 1P
  18226. .LP
  18227. 2.2.6
  18228.     \fITransparency\fR 
  18229. .sp 9p
  18230. .RT
  18231. .PP
  18232. The DCE or DTE, when transmitting, shall examine the frame content between 
  18233. the two flag sequences including the address, control, information and 
  18234. FCS fields and shall insert a 0 bit after all sequences of 5 contiguous 
  18235. 1\ bits (including the last 5\ bits of the FCS) to ensure that a flag sequence 
  18236. is not 
  18237. simulated. The DCE or DTE, when receiving, shall examine the frame content 
  18238. and shall discard any 0\ bit which directly follows\ 5 contiguous 1\ bits. 
  18239. .RT
  18240. .sp 1P
  18241. .LP
  18242. 2.2.7
  18243.     \fIFrame check sequence (FCS)\fR \fI field\fR 
  18244. .sp 9p
  18245. .RT
  18246. .PP
  18247. The notation used to describe the FCS is based on the property of cyclic 
  18248. codes that a code vector such as 1000000100001 can be represented by a 
  18249. polynomial \fIP\fR (\fIx\fR )\ =\ \fIx\fR \u1\d\u2\d\ +\ \fIx\fR \u5\d\ 
  18250. +\ 1. The elements of an \fIn\fR \(hyelement 
  18251. code word are thus the coefficients of a polynomial of order \fIn\fR \ 
  18252. \(em\ 1. In this application, these coefficients can have the value\ 0 
  18253. or\ 1 and the polynomial 
  18254. operations are performed modulo\ 2. The polynomial representing the content 
  18255. of a frame is generated using the first bit received after the frame opening 
  18256. flag as the coefficient of the highest order term. 
  18257. .PP
  18258. The FCS field shall be a 16\(hybit sequence. It shall be the ones
  18259. complement of the sum (modulo\ 2) of:
  18260. .RT
  18261. .LP
  18262.     1)
  18263.     the remainder of
  18264. \fIx\fR \uD\dlFk\fR (\fIx\fR \u1\d\u5\d\uD\dlF036+\ \fIx\fR \u1\d\u4\d\ 
  18265. +\ \fIx\fR \u1\d\u3\d\ + 
  18266. \fIx\fR \u1\d\u2\d\ +\ \fIx\fR \u1\d\u1\d\ +\ \fIx\fR \u1\d\u0\d\ +\ \fIx\fR 
  18267. \u9\d\ +\ \fIx\fR \u8\d\ + 
  18268. \fIx\fR \u7\d\ +\ \fIx\fR \u6\d\ +\ \fIx\fR \u5\d\ +\ \fIx\fR \u4\d\uD\dlF036+\ 
  18269. \fIx\fR \u3\d\ + 
  18270. +\ \fIx\fR \u2\d\ +\ \fIx\fR \ +\ 1) divided (modulo\ 2)
  18271. by the
  18272. generator polynomial \fIx\fR \u1\d\u6\d\ +\ \fIx\fR \u1\d\u2\d\ +\ \fIx\fR 
  18273. \u5\d\ +\ 1, 
  18274. where \fIk\fR is the number of bits in the frame existing between,
  18275. but not including, the final bit of the opening flag and the
  18276. first bit of the FCS, excluding bits inserted for transparency,
  18277. and
  18278. .LP
  18279.     2)
  18280.     the remainder of the division (modulo 2) by the generator
  18281. polynomial \fIx\fR \u1\d\u6\d\ +\ \fIx\fR \u1\d\u2\d\ +\ \fIx\fR \u5\d\ 
  18282. +\ 1 of the 
  18283. product of \fIx\fR \u1\d\u6\d by the content of the frame, existing
  18284. between but not including, the final bit of the opening flag and
  18285. the first bit of the FCS, excluding bits inserted for
  18286. transparency.
  18287. .PP
  18288. As a typical implementation, at the transmitter, the initial
  18289. content of the register of the device computing the remainder of the division 
  18290. is preset to all 1s and is then modified by division by the generator 
  18291. polynomial (as described above) on the address, control and information 
  18292. fields; the ones complement of the resulting remainder is transmitted as 
  18293. the 16\(hybit 
  18294. FCS.
  18295. .PP
  18296. At the receiver, the initial content of the register of the device
  18297. computing the remainder is preset to all 1s. The final remainder, after
  18298. multiplication by \fIx\fR \u1\d\u6\d and then division (modulo\ 2) by the 
  18299. generator 
  18300. polynomial \fIx\fR \u1\d\u6\d\ +\ \fIx\fR \u1\d\u2\d\ +\ \fIx\fR \u5\d\ 
  18301. +\ 1 of the serial incoming protected bits and the FCS, will be 0001110100001111 
  18302. (\fIx\fR \u1\d\u5\d through 
  18303. \fIx\fR \u0\d, respectively) in the absence of transmission errors.
  18304. .PP
  18305. \fINote\fR \ \(em\ Examples of transmitted bit patterns by the DCE and 
  18306. the DTE illustrating application of the transparency mechanism and the 
  18307. frame check 
  18308. sequence to the SABM command and the UA response are given in Appendix\ I.
  18309. .bp
  18310. .RT
  18311. .sp 1P
  18312. .LP
  18313. 2.2.8
  18314.     \fIOrder of bit transmission\fR 
  18315. .sp 9p
  18316. .RT
  18317. .PP
  18318. Addresses, commands, responses and sequence numbers shall be
  18319. .PP
  18320. transmitted with the low\(hyorder bit first (for example, the first bit of the
  18321. sequence number that is transmitted shall have the weight 2\u0\d). The 
  18322. order of transmitting bits within the information field is not specified 
  18323. under \(sc\ 2 of 
  18324. this Recommendation. The FCS shall be transmitted to the line commencing 
  18325. with the coefficient of the highest term, which is found in bit position\ 
  18326. 16 of the FCS\ field (see Tables\ 1/X.25 and 2/X.25). 
  18327. .PP
  18328. \fINote\fR \ \(em\ In Tables 1/X.25 to 13/X.25, bit 1 is defined as the
  18329. low\(hyorder bit.
  18330. .RT
  18331. .sp 1P
  18332. .LP
  18333. 2.2.9
  18334.     \fIInvalid frames\fR 
  18335. .sp 9p
  18336. .RT
  18337. .PP
  18338. The definition of an invalid frame is described in \(sc\ 2.3.5.3 (LAPB) 
  18339. and in \(sc\ 2.6.5.3 (LAP) below. 
  18340. .RT
  18341. .sp 1P
  18342. .LP
  18343. 2.2.10
  18344.     \fIFrame abortion\fR 
  18345. .sp 9p
  18346. .RT
  18347. .PP
  18348. Aborting a frame is performed by transmitting at least seven
  18349. contiguous 1\ bits (with no inserted 0\ bits).
  18350. .RT
  18351. .sp 1P
  18352. .LP
  18353. 2.2.11
  18354.     \fIInterframe time fill\fR 
  18355. .sp 9p
  18356. .RT
  18357. .PP
  18358. Interframe time fill is accomplished by transmitting contiguous
  18359. flags between frames, i.e.\ multiple eight\(hybit flag sequences (see
  18360. \(sc\ 2.2.2).
  18361. .RT
  18362. .sp 1P
  18363. .LP
  18364. 2.2.12
  18365.     \fILink channel states\fR 
  18366. .sp 9p
  18367. .RT
  18368. .PP
  18369. A link channel as defined here is the means for transmission for
  18370. one direction.
  18371. .RT
  18372. .sp 1P
  18373. .LP
  18374. 2.2.12.1
  18375.     \fIActive channel state\fR 
  18376. .sp 9p
  18377. .RT
  18378. .PP
  18379. The DCE incoming or outgoing channel is defined to be in an active condition 
  18380. when it is receiving or transmitting, respectively, a frame, an 
  18381. abortion sequence or interframe time fill.
  18382. .RT
  18383. .sp 1P
  18384. .LP
  18385. 2.2.12.2
  18386.     \fIIdle channel state\fR 
  18387. .sp 9p
  18388. .RT
  18389. .PP
  18390. The DCE incoming or outgoing channel is defined to be in an idle
  18391. condition when it is receiving or transmitting, respectively, a continuous\ 
  18392. 1s state for a period of at least 15\ bit times. 
  18393. .PP
  18394. See \(sc\ 2.3.5.5 for a description of DCE action when an idle condition 
  18395. exists on its incoming channel for an excessive period of time. 
  18396. .RT
  18397. .sp 1P
  18398. .LP
  18399. 2.3
  18400.     \fILAPB elements of procedures\fR \v'3p'
  18401. .sp 9p
  18402. .RT
  18403. .PP
  18404. 2.3.1
  18405. The LAPB elements of procedures are defined in terms of actions
  18406. that occur on receipt of frames at the DCE or\ DTE.
  18407. .PP
  18408. The elements of procedures specified below contain the selection
  18409. .LP
  18410. of commands and responses relevant to the LAPB data link and system
  18411. configurations
  18412. described in \(sc\ 2.1 above. Together, \(sc\(sc\ 2.2 and 2.3 form the general
  18413. requirements for the proper management of a LAPB access data link.
  18414. .sp 2P
  18415. .LP
  18416. 2.3.2
  18417.     \fILAPB control field formats and parameters\fR 
  18418. .sp 1P
  18419. .RT
  18420. .sp 1P
  18421. .LP
  18422. 2.3.2.1
  18423.     \fIControl field formats\fR 
  18424. .sp 9p
  18425. .RT
  18426. .PP
  18427. The control field contains a command or a response, and sequence
  18428. numbers where applicable.
  18429. .PP
  18430. Three types of control field formats are used to perform numbered
  18431. information transfer (I\ format), numbered supervisory functions (S\ format) 
  18432. and unnumbered control functions (U\ format). 
  18433. .PP
  18434. The control field formats for basic (modulo\ 8) operation are depicted 
  18435. in Table\ 3/X.25. 
  18436. .PP
  18437. The control field formats for extended (modulo 128) operation are
  18438. depicted in Table\ 4/X.25.
  18439. .bp
  18440. .RT
  18441. .ce
  18442. .line
  18443. .ce
  18444. \fBTable 3/X.25 [T3.25], p.\fR 
  18445. .ce
  18446. .line
  18447. .ce
  18448. \fBTable 4/X.25 [T4/X.25], p.\fR 
  18449. .ce
  18450. 2.3.2.1.1
  18451. .ce
  18452. \fIInformation transfer format\fR 
  18453. .ce
  18454. \fI \(em I\fR 
  18455. .ce
  18456. .parag
  18457. .ce
  18458. The I format is used to perform an information transfer. The
  18459. .ce
  18460. functions of N(S), N(R) and P are independent; i.e.,\ each I\ frame has 
  18461. an N(S), an N(R) which may or may not acknowledge additional I\ frames 
  18462. received by the 
  18463. .ce
  18464. DCE or DTE, and a P\ bit that may be set to\ 0 or\ 1.
  18465. .ce
  18466. .parag
  18467. .ce
  18468. 2.3.2.1.2
  18469. .ce
  18470. \fISupervisory format\fR 
  18471. .ce
  18472. \fI \(em S\fR 
  18473. .ce
  18474. .parag
  18475. .ce
  18476. The S format is used to perform data link supervisory control
  18477. .ce
  18478. functions such as acknowledge I\ frames, request retransmission of I\ frames, 
  18479. and to request a temporary suspension of transmission of I\ frames. The 
  18480. functions of N(R) and P/F are independent; i.e.,\ each supervisory frame 
  18481. has an N(R) which 
  18482. .ce
  18483. may or may not acknowledge additional I\ frames received by the DCE or\ 
  18484. DTE, and a P/F\ bit that may be set to\ 0 or\ 1. 
  18485. .ce
  18486. .parag
  18487. .ce
  18488. 2.3.2.1.3
  18489. .ce
  18490. \fIUnnumbered format\fR 
  18491. .ce
  18492. \fI \(em U\fR 
  18493. .ce
  18494. .parag
  18495. .ce
  18496. The U format is used to provide additional data link control
  18497. .ce
  18498. functions. This format contains no sequence numbers, but does include a 
  18499. P/F\ bit that may be set to\ 0 or\ 1. The unnumbered frames have the same 
  18500. control field 
  18501. .ce
  18502. length (one octet) in both basic (modulo\ 8) operation and extended (modulo\ 
  18503. 128) operation. 
  18504. .ce
  18505. .parag
  18506. .ce
  18507. 2.3.2.2
  18508. .ce
  18509. \fIControl field parameters\fR 
  18510. .ce
  18511. .parag
  18512. .ce
  18513. The various parameters associated with the control field formats
  18514. .ce
  18515. are described below.
  18516. .ce
  18517. .parag
  18518. .ce
  18519. 2.3.2.2.1
  18520. .ce
  18521. \fIModulus\fR 
  18522. .ce
  18523. .parag
  18524. .ce
  18525. Each I frame is sequentially numbered and may have the value\ 0
  18526. .ce
  18527. through modulus minus\ 1 (where \*Qmodulus\*U is the modulus of the sequence
  18528. .ce
  18529. numbers). The modulus equals either\ 8 or\ 128 and the sequence numbers cycle
  18530. .ce
  18531. through the entire range.
  18532. .ce
  18533. .parag
  18534. .ce
  18535. 2.3.2.2.2
  18536. .ce
  18537. \fISend state variable\fR 
  18538. .ce
  18539. \fI V(S)\fR 
  18540. .ce
  18541. .parag
  18542. .ce
  18543. The send state variable V(S) denotes the sequence number of the
  18544. .ce
  18545. next in\(hysequence I\ frame to be transmitted. V(S) can take on the values\ 0
  18546. .ce
  18547. through modulus minus\ 1. The value of V(S) is incremented by\ 1 with each
  18548. .ce
  18549. successive I\ frame transmission, but cannot exceed the N(R) of the last
  18550. .ce
  18551. received\ I or supervisory frame by more than the maximum number of outstanding 
  18552. I\ frames\ (\fIk\fR 
  18553. .ce
  18554. ). The value of\ k is defined in \(sc\ 2.4.8.6 below.
  18555. .ce
  18556. .parag
  18557. .ce
  18558.  
  18559. .ce
  18560. 2.3.2.2.3
  18561. .ce
  18562. \fISend sequence number\fR 
  18563. .ce
  18564. \fI N(S)\fR 
  18565. .ce
  18566. .parag
  18567. .ce
  18568. Only I frames contain N(S), the send sequence number of transmitted I\ 
  18569. frames. At the time that an in\(hysequence I\ frame is designated for 
  18570. .ce
  18571. transmission, the value of N(S) is set equal to the value of the send state
  18572. .ce
  18573. variable\ V(S).
  18574. .ce
  18575. .parag
  18576. .ce
  18577. 2.3.2.2.4
  18578. .ce
  18579. \fIReceive state variable\fR 
  18580. .ce
  18581. \fIV(R)\fR 
  18582. .ce
  18583. .parag
  18584. .ce
  18585. The receive state variable V(R) denotes the sequence number of the next 
  18586. in\(hysequence I\ frame expected to be received. V(R) can take on the values 
  18587. 0 through modulus minus\ 1. The value of V(R) is incremented by\ 1 by the 
  18588. receipt of an error\(hyfree, in\(hysequence I\ frame whose send sequence 
  18589. number N(S) equals 
  18590. .ce
  18591. the receive state variable V(R).
  18592. .ce
  18593. .parag
  18594. .ce
  18595. 2.3.2.2.5
  18596. .ce
  18597. \fIReceive sequence number\fR 
  18598. .ce
  18599. \fI N(R)\fR 
  18600. .ce
  18601. .parag
  18602. .ce
  18603. All I frames and supervisory frames contain N(R), the expected send sequence 
  18604. number of the next received I\ frame. At the time that a frame of the above 
  18605. types is designated for transmission, the value of N(R) is set equal to 
  18606. the current value of the receive state variable V(R). N(R) indicates that 
  18607. the DCE or DTE transmitting the N(R) has received correctly all I\ frames 
  18608. numbered up to and including N(R)\ \(em\ 1. 
  18609. .ce
  18610. .parag
  18611. .ce
  18612. 2.3.2.2.6
  18613. .ce
  18614. \fIPoll/Final bit\fR 
  18615. .ce
  18616. \fI P/F\fR 
  18617. .ce
  18618. .parag
  18619. .ce
  18620. All frames contain P/F, the Poll/Final bit. In command frames, the P/F 
  18621. bit is referred to as the P bit. In response frames, it is referred to 
  18622. as the F\ bit. 
  18623. .ce
  18624. .parag
  18625. .ce
  18626. 2.3.3
  18627. .ce
  18628. \fIFunctions of the Poll/Final bit\fR 
  18629. .ce
  18630. .parag
  18631. .ce
  18632. The Poll bit set to 1 is used by the DCE or DTE to solicit (poll) a response 
  18633. from the DTE or DCE, respectively. The Final bit set to\ 1 is used by the 
  18634. DCE or DTE to indicate the response frame transmitted by the DTE or DCE, 
  18635. .ce
  18636. respectively, as a result of the soliciting (poll) command.
  18637. .ce
  18638. .parag
  18639. .ce
  18640. The use of the P/F bit is described in \(sc\ 2.4.3 below.
  18641. .ce
  18642. .parag
  18643. .ce
  18644. 2.3.4
  18645. .ce
  18646. \fICommands and responses\fR 
  18647. .ce
  18648. .parag
  18649. .ce
  18650. For basic (modulo 8) operation, the commands and responses
  18651. .ce
  18652. represented in Table\ 5/X.25 will be supported by the DCE and the\ DTE.
  18653. .ce
  18654. .parag
  18655. .ce
  18656.  
  18657. .ce
  18658. For extended (modulo 128) operation, the commands and responses
  18659. .ce
  18660. represented in Table\ 6/X.25 will be supported by the DCE and the DTE.
  18661. .ce
  18662. .parag
  18663. .ce
  18664.  
  18665. .ce
  18666. For purposes of the LAPB procedures, the supervisory function bit encoding 
  18667. \*Q11\*U and those encodings of the modifier function bits in 
  18668. .ce
  18669. Tables\ 3/X.25 and 4/X.25 not identified in Tables\ 5/X.25 or 6/X.25 are
  18670. .ce
  18671. identified as \*Qundefined or not implemented\*U command and response control
  18672. .ce
  18673. fields.
  18674. .ce
  18675. .parag
  18676. .ce
  18677. The commands and responses in Tables 5/X.25 and 6/X.25 are defined as  follows:
  18678. .ce
  18679. .parag
  18680. .ce
  18681. 2.3.4.1
  18682. .ce
  18683. \fIInformation (I)\fR 
  18684. .ce
  18685. \fI command\fR 
  18686. .ce
  18687. .parag
  18688. .ce
  18689. The function of the information (I) command is to transfer across a data 
  18690. link a sequentially numbered frame containing an information field. 
  18691. .ce
  18692. .parag
  18693. .ce
  18694. .line
  18695. .ce
  18696. \fBTable 5/X.25 [T5.25], p.\fR 
  18697. .ce
  18698. .line
  18699. .ce
  18700. \fBTable 6/X.25 [T6.25], p.\fR 
  18701. .ce
  18702. 2.3.4.2
  18703. .ce
  18704. \fIReceive ready (RR)\fR 
  18705. .ce
  18706. \fI command and response\fR 
  18707. .ce
  18708. .parag
  18709. .ce
  18710. The receive ready (RR) supervisory frame is used by the DCE
  18711. .ce
  18712. or DTE to:
  18713. .ce
  18714. .parag
  18715. .ce
  18716.  
  18717. .ce
  18718. 1)
  18719. .ce
  18720. indicate it is ready to receive an I frame; and
  18721. .ce
  18722. .parag
  18723. .ce
  18724. 2)
  18725. .ce
  18726. acknowledge previously received I frames numbered up to and
  18727. .ce
  18728. including N(R)\ \(em\ 1.
  18729. .ce
  18730. .parag
  18731. .ce
  18732. An RR frame may be used to indicate the clearance of a busy
  18733. .ce
  18734. condition that was reported by the earlier transmission of an RNR frame 
  18735. by that same station (DCE or\ DTE). In addition to indicating the DCE or 
  18736. DTE status, the RR command with the P\ bit set to\ 1 may be used by the 
  18737. DCE or DTE to ask for the status of the DTE or DCE, respectively. 
  18738. .ce
  18739. .parag
  18740. .ce
  18741. 2.3.4.3
  18742. .ce
  18743. \fIReceive not ready (RNR) command and response\fR 
  18744. .ce
  18745. .parag
  18746. .ce
  18747. The receive not ready (RNR) supervisory frame is used by the DCE or DTE 
  18748. to indicate a busy condition; i.e.\ temporary inability to accept 
  18749. .ce
  18750. additional incoming I\ frames. I\ frames numbered up to and including N(R)\ 
  18751. \(em\ 1 
  18752. .ce
  18753. are acknowledged. I\ frame N(R) and any subsequent I\ frames received, if any,
  18754. .ce
  18755. are not acknowledged; the acceptance status of these I\ frames will be 
  18756. indicated in subsequent exchanges. 
  18757. .ce
  18758. .parag
  18759. .ce
  18760. In addition to indicating the DCE or DTE status, the RNR command with the 
  18761. P bit set to\ 1 may be used by an DCE or DTE to ask for the status of the 
  18762. .ce
  18763. DTE or DCE, respectively.
  18764. .ce
  18765. .parag
  18766. .ce
  18767. 2.3.4.4
  18768. .ce
  18769. \fIReject (REJ) command and response\fR 
  18770. .ce
  18771. .parag
  18772. .ce
  18773. The reject (REJ) supervisory frame is used by the DCE or DTE to request 
  18774. transmission of I\ frames starting with the frame numbered N(R). 
  18775. .ce
  18776. I\ frames numbered N(R)\ \(em\ 1 and below are acknowledged. Additional 
  18777. I\ frames 
  18778. .ce
  18779. pending initial transmission may be transmitted following the retransmitted
  18780. .ce
  18781. I\ frame(s).
  18782. .ce
  18783. .parag
  18784. .ce
  18785.  
  18786. .ce
  18787. Only one REJ exception condition for a given direction of information transfer 
  18788. may be established at any time. The REJ exception condition is cleared 
  18789. (reset) upon the receipt of an I\ frame with an N(S) equal to the N(R) 
  18790. of the 
  18791. .ce
  18792. REJ\ frame.
  18793. .ce
  18794. .parag
  18795. .ce
  18796. An REJ frame may be used to indicate the clearance of a busy condition 
  18797. that was reported by the earlier transmission of an RNR frame by that same 
  18798. .ce
  18799. station (DCE or\ DTE). In addition to indicating the DCE or DTE status, the
  18800. .ce
  18801. REJ\ command with the P bit set to\ 1 may be used by the DCE or\ DTE to ask for
  18802. .ce
  18803. the status of the DTE or\ DCE, respectively.
  18804. .ce
  18805. .parag
  18806. .ce
  18807. \fR 
  18808. .ce
  18809. 2.3.4.5
  18810. .ce
  18811. \fISet asynchronous balanced mode (SABM)\fR 
  18812. .ce
  18813. \fIcommand/\fR 
  18814. .ce
  18815. \fISet asynchronous balanced mode extended (SABME)\fR 
  18816. .ce
  18817.  
  18818. .ce
  18819. \fIcommand (subscription time option)\fR 
  18820. .ce
  18821. .parag
  18822. .ce
  18823.  
  18824. .ce
  18825. The SABM unnumbered command is used to place the addressed DCE or DTE in 
  18826. an asynchronous balanced mode (ABM) information transfer phase where all 
  18827. command/response control fields will be one\ octet in length. 
  18828. .ce
  18829. .parag
  18830. .ce
  18831. The SABME unnumbered command is used to place the addressed DCE or DTE 
  18832. in an asynchronous balanced mode\ (ABM) information transfer phase where 
  18833. .ce
  18834. numbered command/response control fields will be two octets in length, and
  18835. .ce
  18836. unnumbered command/response control fields will be one octet in length.
  18837. .ce
  18838. .parag
  18839. .ce
  18840.  
  18841. .ce
  18842. No information field is permitted with the SABM or SABME command. The transmission 
  18843. of a SABM/SABME command indicates the clearance of a busy 
  18844. .ce
  18845. condition that was reported by the earlier trans
  18846. .ce
  18847. mission\ of an RNR\ frame by   that
  18848. .ce
  18849. same station (DCE or\ DTE). The DCE or DTE confirms acceptance of SABM/SABME
  18850. .ce
  18851. [modulo\ 8 (basic) operation/modulo\ 128 (extended) operation] command by the
  18852. .ce
  18853. transmission, at the first opportunity, of a UA\ response. Upon acceptance of
  18854. .ce
  18855. this command, the DCE or DTE send state variable\ V(S) and receive state
  18856. .ce
  18857. variable V(R) are set to\ 0.
  18858. .ce
  18859. .parag
  18860. .ce
  18861. Previously transmitted I\ frames that are unacknowledged when this
  18862. .ce
  18863. command is actioned remain unac
  18864. .ce
  18865. knowledged.\ It is the responsibility of a
  18866. .ce
  18867. higher layer (e.g.\ Packet Layer or MLP) to recover from the possible loss of
  18868. .ce
  18869. the contents (e.g.\ packets) of such I\ frames.
  18870. .ce
  18871. .parag
  18872. .ce
  18873. \fINote\fR 
  18874. .ce
  18875. \ \(em\ The mode of operation of a data link [basic (modulo 8) or
  18876. .ce
  18877. extended (modulo\ 128)] is determined at subscription time and is only 
  18878. changed by going through a new subscription process. 
  18879. .ce
  18880. .parag
  18881. .ce
  18882. 2.3.4.6
  18883. .ce
  18884. \fIDisconnect (DISC)\fR 
  18885. .ce
  18886. \fI command\fR 
  18887. .ce
  18888. .parag
  18889. .ce
  18890. The DISC unnumbered command is used to terminate the mode
  18891. .ce
  18892. previously set. It is used to inform the DCE or DTE receiving the DISC 
  18893. command that the DTE or DCE sending the DISC command is suspending operation. 
  18894. No 
  18895. .ce
  18896. information field is permitted with the DISC command. Prior to actioning the
  18897. .ce
  18898. DISC command, the DCE or DTE receiving the DISC command confirms the acceptance 
  18899. of the DISC command by the transmission of a UA response. The DTE or DCE 
  18900. .ce
  18901. sending the DISC command enters the disconnected phase when it receives the
  18902. .ce
  18903. acknowledging UA response.
  18904. .ce
  18905. .parag
  18906. .ce
  18907. Previously transmitted I frames that are unacknowledged when this
  18908. .ce
  18909. command is actioned remain unacknowledged. It is the responsibility of 
  18910. a higher layer (e.g.\ Packet Layer or MLP) to recover from the possible 
  18911. loss of the 
  18912. .ce
  18913. contents (e.g.,\ packets) of such I frames.
  18914. .ce
  18915. .parag
  18916. .ce
  18917. 2.3.4.7
  18918. .ce
  18919. \fIUnnumbered acknowledgement (UA)\fR 
  18920. .ce
  18921. \fI response\fR 
  18922. .ce
  18923. .parag
  18924. .ce
  18925. The UA unnumbered response is used by the DCE or DTE to acknowledge the 
  18926. receipt and acceptance of the mode\(hysetting commands. Received mode\(hysetting 
  18927. commands are not actioned until the UA response is transmitted. The 
  18928. .ce
  18929. transmission of a UA response indicates the clearance of a busy condition 
  18930. that was reported by the earlier transmission of an RNR frame by that same 
  18931. station (DCE or DTE). No information field is permitted with the UA response. 
  18932. .ce
  18933. .parag
  18934. .ce
  18935.  
  18936. .ce
  18937. 2.3.4.8
  18938. .ce
  18939. \fIDisconnected mode (DM)\fR 
  18940. .ce
  18941. \fI response\fR 
  18942. .ce
  18943. .parag
  18944. .ce
  18945. The DM unnumbered response is used to report a status where the DCE or 
  18946. DTE is logically disconnected from the data link, and is in the disconnected 
  18947. phase. The DM response may be sent to indicate that the DCE or DTE has 
  18948. entered the disconnected phase without benefit of having received a DISC 
  18949. command, or, if sent in response to the reception of a mode setting command, 
  18950. is sent to 
  18951. .ce
  18952. inform the DTE or DCE that the DCE or DTE, respectively, is still in the
  18953. .ce
  18954. disconnected phase and cannot execute the set mode command. No information
  18955. .ce
  18956. field is permitted with the DM response.
  18957. .ce
  18958. .parag
  18959. .ce
  18960. A DCE or DTE in a disconnected phase will monitor received commands
  18961. .ce
  18962. and will react to an SABM/SABME command as outlined in \(sc\ 2.4.4 below, 
  18963. and will respond with a DM response with the F bit set to\ 1 to any other 
  18964. command 
  18965. .ce
  18966. received with the P\ bit set to\ 1.
  18967. .ce
  18968. .parag
  18969. .ce
  18970. 2.3.4.9
  18971. .ce
  18972. \fIFrame reject (FRMR)\fR 
  18973. .ce
  18974. \fI response\fR 
  18975. .ce
  18976. .parag
  18977. .ce
  18978. The FRMR unnumbered response is used by the DCE or DTE to report an error 
  18979. condition not recoverable by retransmission of the identical frame; 
  18980. .ce
  18981. i.e.\ at least one of the following conditions, which results from the 
  18982. receipt of a valid frame: 
  18983. .ce
  18984. .parag
  18985. .ce
  18986. 1)
  18987. .ce
  18988. the receipt of a command or response control field that is
  18989. .ce
  18990. undefined or not implemented;
  18991. .ce
  18992. .parag
  18993. .ce
  18994. 2)
  18995. .ce
  18996. the receipt of an I frame with an information field which
  18997. .ce
  18998. exceeds the maximum established length;
  18999. .ce
  19000. .parag
  19001. .ce
  19002. 3)
  19003. .ce
  19004. the receipt of an invalid N(R); or
  19005. .ce
  19006. .parag
  19007. .ce
  19008. 4)
  19009. .ce
  19010. the receipt of a frame with an information field which is
  19011. .ce
  19012. not permitted or the receipt of a supervisory or unnumbered
  19013. .ce
  19014. frame with incorrect length.
  19015. .ce
  19016. .parag
  19017. .ce
  19018. An undefined or not implemented control field is any of the
  19019. .ce
  19020. control field encodings that are not identified in Tables\ 5/X.25 or\ 6/X.25.
  19021. .ce
  19022. .parag
  19023. .ce
  19024.  
  19025. .ce
  19026. A valid N(R) must be within the range from the lowest send sequence
  19027. .ce
  19028. number N(S) of the still unacknowledged frame(s) to the current DCE send 
  19029. state variable inclusive (or to the current internal variable \fIx\fR 
  19030. .ce
  19031. if the DCE is in
  19032. .ce
  19033. the timer recovery condition as described in \(sc\ 2.4.5.9).
  19034. .ce
  19035. .parag
  19036. .ce
  19037.  
  19038. .ce
  19039. An information field which immediately follows the control field, and consists 
  19040. of\ 3 or 5\ octets [modulo\ 8 (basic) operation or modulo\ 128 (extended) 
  19041. operation, respectively], is returned with this response and provides the 
  19042. .ce
  19043. reason for the FRMR response. These formats are given in Tables\ 7/X.25
  19044. .ce
  19045. and\ 8/X.25.
  19046. .ce
  19047. .parag
  19048. .ce
  19049. 2.3.5
  19050. .ce
  19051. \fIException condition reporting and recovery\fR 
  19052. .ce
  19053. .parag
  19054. .ce
  19055. The error recovery procedures which are available to effect
  19056. .ce
  19057. recovery following the detection/occurrence of an 
  19058. .ce
  19059. exception condition
  19060. .ce
  19061.  at the Data Link Layer are described below. Exception conditions described 
  19062. are those situations which may occur as the result of transmission errors, 
  19063. DCE or DTE malfunction, or operational situations. 
  19064. .ce
  19065. .parag
  19066. .ce
  19067. 2.3.5.1
  19068. .ce
  19069. \fIBusy condition\fR 
  19070. .ce
  19071. .parag
  19072. .ce
  19073. The busy condition results when the DCE or DTE is temporarily
  19074. .ce
  19075. unable to continue to receive I frames due to internal constraints,
  19076. .ce
  19077. e.g.\ receive buffering limitations. In this case an RNR frame is transmitted
  19078. .ce
  19079. from the busy DCE or DTE. I\ frames pending transmission may be transmitted 
  19080. from the busy DCE or DTE prior to or following the RNR\ frame. 
  19081. .ce
  19082. .parag
  19083. .ce
  19084. An indication that the busy condition has cleared is communicated by the 
  19085. transmission of a UA (only in response to a SABM/SABME command), RR, REJ 
  19086. or SABM/SABME (modulo\ 8/modulo\ 128) frame. 
  19087. .ce
  19088. .parag
  19089. .ce
  19090. .line
  19091. .ce
  19092. \fBTable 7/X.25 [T7.25], p.\fR 
  19093. .ce
  19094. .line
  19095. .ce
  19096. \fBTable 8/X.25 [T8.25], p.\fR 
  19097. .ce
  19098. 2.3.5.2
  19099. .ce
  19100. \fIN(S) sequence error condition\fR 
  19101. .ce
  19102. .parag
  19103. .ce
  19104. The information field of all I frames received whose N(S) does not equal 
  19105. the receive state variable V(R) will be discarded. 
  19106. .ce
  19107. .parag
  19108. .ce
  19109. An N(S) sequence error exception condition occurs in the receiver when 
  19110. an I\ frame received contains an N(S) which is not equal to the receive 
  19111. state 
  19112. .ce
  19113. variable V(R) at the receiver. The receiver does not acknowledge (increment 
  19114. its receive state variable) the I\ frame causing the sequence error, or 
  19115. any I\ frame which may follow, until an I\ frame with the correct N(S) 
  19116. is received. 
  19117. .ce
  19118. .parag
  19119. .ce
  19120.  
  19121. .ce
  19122. A DCE or DTE which receives one or more valid I frames having sequence 
  19123. errors or subsequent supervisory frames (RR, RNR and REJ) shall accept 
  19124. the 
  19125. .ce
  19126. control information contained in the N(R) field and the P or F bit to perform 
  19127. data link control functions; e.g.\ to receive acknowledgement of previously 
  19128. .ce
  19129. transmitted I\ frames and to cause the DCE or DTE to respond (P bit set to 1).
  19130. .ce
  19131. .parag
  19132. .ce
  19133.  
  19134. .ce
  19135. The means specified in \(sc\(sc\ 2.3.5.2.1 and 2.3.5.2.2 shall be available 
  19136. for initiating the retransmission of lost or errored I\ frames following 
  19137. the 
  19138. .ce
  19139. occurrence of an N(S) sequence error condition.
  19140. .ce
  19141. .parag
  19142. .ce
  19143. 2.3.5.2.1
  19144. .ce
  19145. \fIREJ recovery\fR 
  19146. .ce
  19147. .parag
  19148. .ce
  19149. The REJ frame is used by a receiving DCE or DTE to initiate a
  19150. .ce
  19151. recovery (retransmission) following the detection of an N(S) sequence error.
  19152. .ce
  19153. .parag
  19154. .ce
  19155.  
  19156. .ce
  19157. With respect to each direction of transmission on the data link, only one 
  19158. \*Qsent REJ\*U exception condition from a DCE or DTE, to a DTE or DCE, 
  19159. is 
  19160. .ce
  19161. established at a time. A \*Qsent REJ\*U exception condition is cleared when the
  19162. .ce
  19163. requested I\ frame is received.
  19164. .ce
  19165. .parag
  19166. .ce
  19167.  
  19168. .ce
  19169. A DCE or DTE receiving a REJ frame initiates sequential
  19170. .ce
  19171. (re\(hy)transmission of I\ frames starting with the I\ frame indicated 
  19172. by the N(R) contained in the REJ frame. The retransmitted frames may contain 
  19173. an N(R) and a P bit that are updated from, and therefore different from, 
  19174. the ones contained in the originally transmitted I\ frames. 
  19175. .ce
  19176. .parag
  19177. .ce
  19178. 2.3.5.2.2
  19179. .ce
  19180. \fITime\(hyout recovery\fR 
  19181. .ce
  19182. .parag
  19183. .ce
  19184. If a DCE or DTE, due to a transmission error, does not receive (or receives 
  19185. and discards) a single I\ frame or the last I\ frame(s) in a sequence of 
  19186. I\ frames, it will not detect an N(S) sequence error condition and, therefore, 
  19187. will not transmit a REJ frame. The DTE or DCE which transmitted the 
  19188. .ce
  19189. unacknowledged I\ frame(s) shall, following the completion of a system 
  19190. specified time\(hyout period (see \(sc\(sc\ 2.4.5.1 and 2.4.5.9 below), 
  19191. take appropriate recovery action to determine at which I\ frame retransmission 
  19192. must begin. The 
  19193. .ce
  19194. retransmitted frame(s) may contain an N(R) and a P bit that is updated from,
  19195. .ce
  19196. and therefore different from, the ones contained in the originally transmitted 
  19197. frame(s). 
  19198. .ce
  19199. .parag
  19200. .ce
  19201. 2.3.5.3
  19202. .ce
  19203. \fIInvalid frame\fR 
  19204. .ce
  19205. \fI condition\fR 
  19206. .ce
  19207. .parag
  19208. .ce
  19209. Any frame which is invalid will be discarded, and no action is
  19210. .ce
  19211. taken as the result of that frame. An invalid frame is defined as one
  19212. .ce
  19213. which:
  19214. .ce
  19215. .parag
  19216. .ce
  19217. a)
  19218. .ce
  19219. is not properly bounded by two flags;
  19220. .ce
  19221. .parag
  19222. .ce
  19223. b)
  19224. .ce
  19225. in basic (modulo 8) operation, contains fewer than 32 bits
  19226. .ce
  19227. between flags; in extended (modulo\ 128) operation, contains
  19228. .ce
  19229. fewer than 40\ bits between flags of frames that contain sequence
  19230. .ce
  19231. numbers or 32\ bits between flags of frames that do not contain
  19232. .ce
  19233. sequence numbers;
  19234. .ce
  19235. .parag
  19236. .ce
  19237. c)
  19238. .ce
  19239. contains a Frame Check Sequence (FCS) error; or
  19240. .ce
  19241. .parag
  19242. .ce
  19243. d)
  19244. .ce
  19245. contains an address other than A or B (for single link
  19246. .ce
  19247. operation) or other than C or D (for multilink operation).
  19248. .ce
  19249. .parag
  19250. .ce
  19251.  
  19252. .ce
  19253. For those networks that are octet aligned, a detection of
  19254. .ce
  19255. non\(hyoctet alignment may be made at the Data Link Layer by adding a frame
  19256. .ce
  19257. validity check that requires the number of bits between the opening flag and
  19258. .ce
  19259. the closing flag, excluding bits inserted for transparency, to be an integral 
  19260. number of octets in length, or the frame is considered invalid. 
  19261. .ce
  19262. .parag
  19263. .ce
  19264. 2.3.5.4
  19265. .ce
  19266. \fIFrame rejection\fR 
  19267. .ce
  19268. \fI condition\fR 
  19269. .ce
  19270. .parag
  19271. .ce
  19272. A frame rejection condition is established upon the receipt of an error\(hyfree 
  19273. frame with one of the conditions listed in \(sc\ 2.3.4.9 above. 
  19274. .ce
  19275. .parag
  19276. .ce
  19277.  
  19278. .ce
  19279. At the DCE or DTE, this frame rejection exception condition is
  19280. .ce
  19281. reported by an FRMR response for appropriate DTE or DCE action, respectively. 
  19282. Once a DCE has established such an exception condition, no additional I\ 
  19283. frames are accepted until the condition is reset by the DTE, except for 
  19284. examination of the P bit. The FRMR response may be repeated at each opportunity, 
  19285. as specified in \(sc\ 2.4.7.3, until recovery is effected by the DTE, or 
  19286. until the DCE initiates its own recovery in case the DTE does not respond. 
  19287. .ce
  19288. .parag
  19289. .ce
  19290. 2.3.5.5
  19291. .ce
  19292. \fIExcessive idle channel state condition on incoming\fR 
  19293. .ce
  19294.  
  19295. .ce
  19296. \fIchannel\fR 
  19297. .ce
  19298. .parag
  19299. .ce
  19300. Upon detection of an idle channel state condition (see \(sc\ 2.2.12.2 above) 
  19301. on the incoming channel, the DCE shall wait for a period\ T3 (see 
  19302. .ce
  19303. \(sc\ 2.4.8.3 below) without taking any specific action, waiting for detection 
  19304. of a return to the active channel state (i.e.,\ detection of at least one 
  19305. flag 
  19306. .ce
  19307. sequence). After the period\ T3, the DCE shall notify the higher layer 
  19308. (e.g.\ the Packet Layer or the MLP) of the excessive idle channel state 
  19309. condition, but 
  19310. .ce
  19311. shall not take any action that would preclude the DTE from establishing the
  19312. .ce
  19313. data link by normal data link set\(hyup procedures.
  19314. .ce
  19315. .parag
  19316. .ce
  19317. \fINote\fR 
  19318. .ce
  19319. \ \(em\ Other actions to be taken by the DCE at the Data Link Layer upon 
  19320. expiration of period\ T3 is a subject for further study. 
  19321. .ce
  19322. .parag
  19323. .ce
  19324.  
  19325. .ce
  19326. 2.4
  19327. .ce
  19328. \fIDescription of the \fR 
  19329. .ce
  19330. \fILAPB procedure\fR 
  19331. .ce
  19332. .parag
  19333. .ce
  19334. 2.4.1
  19335. .ce
  19336. \fILAPB basic and extended modes of operation\fR 
  19337. .ce
  19338. .parag
  19339. .ce
  19340. In accordance with the system choice made by the DTE at
  19341. .ce
  19342. subscription time, the DCE will either support modulo\ 8 (basic) operation or
  19343. .ce
  19344. will support modulo\ 128 (extended) operation. Changing from basic operation 
  19345. to extended operation, or vice versa, in the DCE requires resubscription 
  19346. by the 
  19347. .ce
  19348. DTE for the desired service, and is not supported dynamically.
  19349. .ce
  19350. .parag
  19351. .ce
  19352. Table 5/X.25 indicates the command and response control field formats used 
  19353. with the basic (modulo\ 8) service. The mode\(hysetting command employed 
  19354. to 
  19355. .ce
  19356. initialize (set up) or reset the basic mode is the SABM command. Table 
  19357. 6/X.25 indicates the command and response control field formats used with 
  19358. the extended (modulo\ 128) service. The mode\(hysetting command employed 
  19359. to initialize (set up) or reset the extended mode is the SABME command. 
  19360. .ce
  19361. .parag
  19362. .ce
  19363. 2.4.2
  19364. .ce
  19365. \fILAPB procedure for addressing\fR 
  19366. .ce
  19367. .parag
  19368. .ce
  19369. The address field identifies a frame as either a command or a
  19370. .ce
  19371. response. A command frame contains the address of the DCE or DTE to which 
  19372. the command is being sent. A response frame contains the address of the 
  19373. DCE or DTE sending the frame. 
  19374. .ce
  19375. .parag
  19376. .ce
  19377. In order to allow differentiation between single link operation and
  19378. .ce
  19379. the optional multilink operation for diagnostic and/or maintenance reasons,
  19380. .ce
  19381. different address pair encodings are assigned to data links operating with
  19382. .ce
  19383. multilink procedure compared to data links operating with the single link
  19384. .ce
  19385. procedure.
  19386. .ce
  19387. .parag
  19388. .ce
  19389. Frames containing commands transferred from the DCE to the DTE will
  19390. .ce
  19391. contain the address\ A for the single link operation and address\ C for the
  19392. .ce
  19393. multilink operation.
  19394. .ce
  19395. .parag
  19396. .ce
  19397. Frames containing responses transferred from the DCE to the DTE will contain 
  19398. the address\ B for the single link operation and address\ D for the 
  19399. .ce
  19400. multilink operation.
  19401. .ce
  19402. .parag
  19403. .ce
  19404.  
  19405. .ce
  19406. Frames containing commands transferred from the DTE to the DCE shall contain 
  19407. the address\ B for the single link operation and address\ D for the 
  19408. .ce
  19409. multilink operation.
  19410. .ce
  19411. .parag
  19412. .ce
  19413. Frames containing responses transferred from the DTE to the DCE shall contain 
  19414. the address\ A for the single link operation and address\ C for the 
  19415. .ce
  19416. multilink operation.
  19417. .ce
  19418. .parag
  19419. .ce
  19420. These addresses are coded as follows:
  19421. .ce
  19422. .parag
  19423. .ce
  19424. Address
  19425. .ce
  19426. 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8
  19427. .ce
  19428. .parag
  19429. .ce
  19430. Single link operation
  19431. .ce
  19432. \ \ A
  19433. .ce
  19434. 1\ 1\ 0\ 0\ 0\ 0\ 0\ 0
  19435. .ce
  19436. .line
  19437. .ce
  19438. \ \ B
  19439. .ce
  19440. 1\ 0\ 0\ 0\ 0\ 0\ 0\ 0
  19441. .ce
  19442. .parag
  19443. .ce
  19444. Multilink operation
  19445. .ce
  19446. \ \ C
  19447. .ce
  19448. 1\ 1\ 1\ 1\ 0\ 0\ 0\ 0
  19449. .ce
  19450. .line
  19451. .ce
  19452. \ \ D
  19453. .ce
  19454. 1\ 1\ 1\ 0\ 0\ 0\ 0\ 0
  19455. .ce
  19456. .parag
  19457. .ce
  19458. \fINote\fR 
  19459. .ce
  19460. \ \(em\ The DCE will discard all frames received with an address other 
  19461. than\ A or\ B (single link operation), or\ C or\ D (multilink operation). 
  19462. .ce
  19463. .parag
  19464. .ce
  19465. 2.4.3
  19466. .ce
  19467. \fILAPB procedure for the use of the P/F bit\fR 
  19468. .ce
  19469. .parag
  19470. .ce
  19471. The DCE or DTE receiving an SABM/SABME, DISC, supervisory command or I\ 
  19472. frame with the P\ bit set to\ 1 will set the F\ bit to\ 1 in the next response 
  19473. frame it transmits. 
  19474. .ce
  19475. .parag
  19476. .ce
  19477. The response frame returned by the DCE to an SABM/SABME or DISC
  19478. .ce
  19479. command with the P\ bit set to\ 1 will be a UA or DM response with the 
  19480. F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  19481. with the P\ bit set to\ 1, received during the information transfer phase, 
  19482. will be an RR, REJ, RNR or FRMR response with the F\ bit set to\ 1. The 
  19483. response frame returned by the 
  19484. .ce
  19485. DCE to a supervisory command with the P\ bit set to\ 1, received during the
  19486. .ce
  19487. information transfer phase, will be an RR, REJ, RNR or FRMR response with 
  19488. the F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  19489. or 
  19490. .ce
  19491. supervisory frame with the P\ bit set to\ 1, received during the disconnected
  19492. .ce
  19493. phase, will be a DM response with the F\ bit set to\ 1.
  19494. .ce
  19495. .parag
  19496. .ce
  19497. The P bit may be used by the DCE in conjunction with the timer
  19498. .ce
  19499. recovery condition (see \(sc\ 2.4.5.9 below).
  19500. .ce
  19501. .parag
  19502. .ce
  19503. \fINote\fR 
  19504. .ce
  19505. \ \(em\ Other use of the P bit by the DCE is a subject for further
  19506. .ce
  19507. study.
  19508. .ce
  19509. .parag
  19510. .ce
  19511. 2.4.4
  19512. .ce
  19513. \fILAPB procedure for data link set\(hyup and disconnection\fR 
  19514. .ce
  19515. .parag
  19516. .ce
  19517.  
  19518. .ce
  19519. 2.4.4.1
  19520. .ce
  19521. \fIData link set\(hyup\fR 
  19522. .ce
  19523. .parag
  19524. .ce
  19525. The DCE will indicate that it is able to set up the data link by
  19526. .ce
  19527. transmitting contiguous flags (active channel state).
  19528. .ce
  19529. .parag
  19530. .ce
  19531. Either the DTE or the DCE may initiate data link set\(hyup. Prior to
  19532. .ce
  19533. initiation of data link set\(hyup, either the DCE or the DTE may initiate data
  19534. .ce
  19535. link
  19536. .ce
  19537. disconnection (see \(sc\ 2.4.4.3) for the purpose of insuring that the 
  19538. DCE and the DTE are in the same phase. The DCE may also transmit an unsolicited 
  19539. DM response to request the DTE to initiate data link set\(hyup. 
  19540. .ce
  19541. .parag
  19542. .ce
  19543. The DTE shall initiate data link set\(hyup by transmitting an SABM/SABME 
  19544. command to the DCE. If, upon receipt of the SABM/SABME command correctly, 
  19545. the DCE determines that it can enter the information transfer phase, it 
  19546. will return a UA response to the DTE, will reset its send and receive state 
  19547. variables V(S) and V(R) to zero, and will consider that the data link is 
  19548. set up. If, upon 
  19549. .ce
  19550. receipt
  19551. .ce
  19552. of the SABM/SABME command correctly, the DCE determines that it cannot enter
  19553. .ce
  19554. the information transfer phase, it will return a DM response to the DTE as a
  19555. .ce
  19556. denial to the data link set\(hyup initialization and will consider that the
  19557. .ce
  19558. data link is
  19559. .ce
  19560. \fInot\fR 
  19561. .ce
  19562.  set up. In order to avoid misinterpretation of the DM response received, 
  19563. it is suggested that the DTE always sends its SABM/SABME command with the 
  19564. P\ bit set to\ 1. Otherwise, it is not possible to differentiate a DM response 
  19565. intended as a denial to data link set\(hyup from a DM response that is 
  19566. issued in a separate unsolicited sense as a request for a mode\(hysetting 
  19567. command (as described 
  19568. .ce
  19569. in\ \(sc\ 2.4.4.4.2).
  19570. .ce
  19571. .parag
  19572. .ce
  19573. The DCE will initiate data link set\(hyup by transmitting an SABM/SABME 
  19574. command to the DTE and starting its Timer\ T1 in order to determine when 
  19575. too 
  19576. .ce
  19577. much time has elapsed waiting for a reply (see \(sc\ 2.4.8.1 below). Upon 
  19578. reception of a UA response from the DTE, the DCE will reset its send and 
  19579. receive state 
  19580. .ce
  19581. variables\ V(S) and\ V(R) to zero, will stop its Timer\ T1, and will consider 
  19582. that the data link is set up. Upon reception of a DM response from the 
  19583. DTE as a 
  19584. .ce
  19585. denial
  19586. .ce
  19587. to the data link set\(hyup initialization, the DCE will stop its Timer\ 
  19588. T1 and will consider that the data link is \fInot\fR 
  19589. .ce
  19590. set up.
  19591. .ce
  19592. .parag
  19593. .ce
  19594.  
  19595. .ce
  19596. The DCE, having sent the SABM/SABME command, will ignore and discard any 
  19597. frames except an SABM/SABME or DISC command, or a UA or DM response 
  19598. .ce
  19599. received from the DTE. The receipt of an SABM/SABME or DISC command from the
  19600. .ce
  19601. DTE will result in a collision situation that is resolved per \(sc\ 2.4.4.5 
  19602. below. Frames other than the UA and DM responses sent in response to a 
  19603. received 
  19604. .ce
  19605. SABM/SABME or DISC command will be sent only after the data link is set 
  19606. up and if no outstanding SABM/SABME command exists. 
  19607. .ce
  19608. .parag
  19609. .ce
  19610. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  19611. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  19612. .ce
  19613. resend the SABM/SABME command and will restart Timer\ T1. After transmission 
  19614. of the SABM/SABME command N2 times by the DCE, appropriate higher layer 
  19615. recovery action will be initiated. The value of N2 is defined in \(sc\ 
  19616. 2.4.8.4 below. 
  19617. .ce
  19618. .parag
  19619. .ce
  19620. 2.4.4.2
  19621. .ce
  19622. \fIInformation transfer phase\fR 
  19623. .ce
  19624. .parag
  19625. .ce
  19626. After having transmitted the UA response to the SABM/SABME command or having 
  19627. received the UA response to a transmitted SABM/SABME command, the DCE will 
  19628. accept and transmit I and supervisory frames according to the procedures 
  19629. described in \(sc\ 2.4.5 below. 
  19630. .ce
  19631. .parag
  19632. .ce
  19633.  
  19634. .ce
  19635. When receiving the SABM/SABME command while in the information
  19636. .ce
  19637. transfer phase, the DCE will conform to the data link resetting procedure
  19638. .ce
  19639. described in \(sc\ 2.4.7 below.
  19640. .ce
  19641. .parag
  19642. .ce
  19643. 2.4.4.3
  19644. .ce
  19645. \fIData link disconnection\fR 
  19646. .ce
  19647. .parag
  19648. .ce
  19649. The DTE shall initiate a disconnect of the data link by
  19650. .ce
  19651. transmitting a DISC command to the DCE. On correctly receiving a DISC command 
  19652. in the information transfer phase, the DCE will send a UA response and 
  19653. enter 
  19654. .ce
  19655. the disconnected phase. On correctly receiving a DISC command in the
  19656. .ce
  19657. disconnected phase, the DCE will send a DM response and remain in the
  19658. .ce
  19659. disconnected phase. In order to avoid misinterpretation of the DM response
  19660. .ce
  19661. received, it is suggested that the DTE always sends its DISC command with 
  19662. the P\ bit set to\ 1. Otherwise, it is not possible to differentiate a 
  19663. DM response 
  19664. .ce
  19665. intended as an indication that the DCE is already in the disconnected phase
  19666. .ce
  19667. from a DM response that is issued in a separate unsolicited sense as a 
  19668. request for a mode\(hysetting command (as described in \(sc\ 2.4.4.4.2). 
  19669. .ce
  19670. .parag
  19671. .ce
  19672.  
  19673. .ce
  19674. The DCE will initiate a disconnect of the data link by transmitting a DISC 
  19675. command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 below). 
  19676. Upon reception of an UA response from the DTE, the DCE will stop its Timer\ 
  19677. T1 and 
  19678. .ce
  19679. will enter the disconnected phase. Upon reception of a DM response from 
  19680. the DTE as an indication that the DTE was already in the disconnected phase, 
  19681. the DCE 
  19682. .ce
  19683. will stop its Timer\ T1 and will enter the disconnected phase.
  19684. .ce
  19685. .parag
  19686. .ce
  19687. The DCE, having sent the DISC command, will ignore and discard any
  19688. .ce
  19689. frames except an SABM/SABME or DISC command, or a UA or DM response received
  19690. .ce
  19691. from the DTE. The receipt of an SABM/SABME or DISC command from the DTE will
  19692. .ce
  19693. result in a collision situation that is resolved per \(sc\ 2.4.4.5 below.
  19694. .ce
  19695. .parag
  19696. .ce
  19697.  
  19698. .ce
  19699. After the DCE sends the DISC command, if a UA or DM response is not
  19700. .ce
  19701. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  19702. resend the DISC command and will restart Timer\ T1. After transmission 
  19703. of the DISC 
  19704. .ce
  19705. command N2 times by the DCE, appropriate higher layer recovery action will 
  19706. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  19707. .ce
  19708. .parag
  19709. .ce
  19710. 2.4.4.4
  19711. .ce
  19712. \fIDisconnected phase\fR 
  19713. .ce
  19714. .parag
  19715. .ce
  19716. 2.4.4.4.1
  19717. .ce
  19718. After having received a DISC command from the DTE and
  19719. .ce
  19720. returned a UA response to the DTE, or having received the UA response to a
  19721. .ce
  19722. transmitted DISC command, the DCE will enter the disconnected phase.
  19723. .ce
  19724. .parag
  19725. .ce
  19726. In the disconnected phase, the DCE may initiate data link set\(hyup. In 
  19727. the disconnected phase, the DCE will react to the receipt of an SABM/SABME 
  19728. command as described in \(sc\ 2.4.4.1 above and will transmit a DM response 
  19729. in 
  19730. .ce
  19731. answer to a received DISC command. When receiving any other command (defined, 
  19732. or undefined or not implemented) with the P\ bit set to\ 1, the DCE will 
  19733. transmit a DM response with the F\ bit set to\ 1. Other frames received 
  19734. in the 
  19735. .ce
  19736. disconnected phase will be ignored by the DCE.
  19737. .ce
  19738. .parag
  19739. .ce
  19740. 2.4.4.4.2
  19741. .ce
  19742. When the DCE enters the disconnected phase after
  19743. .ce
  19744. detecting error conditions as listed in \(sc\ 2.4.6 below, or after an internal
  19745. .ce
  19746. malfunction, it may indicate this by sending a DM response rather than 
  19747. a DISC command. In these cases, the DCE will transmit a DM response and 
  19748. start its 
  19749. .ce
  19750. Timer\ T1 (see \(sc\ 2.4.8.1 below).
  19751. .ce
  19752. .parag
  19753. .ce
  19754. If Timer T1 runs out before the reception of an SABM/SABME or DISC command 
  19755. from the DTE, the DCE will retransmit the DM response and restart 
  19756. .ce
  19757. Timer\ T1. After transmission of the DM response N2 times, the DCE will 
  19758. remain in the disconnected phase and appropriate recovery actions will 
  19759. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  19760. .ce
  19761. .parag
  19762. .ce
  19763. Alternatively, after an internal malfunction, the DCE may either
  19764. .ce
  19765. initiate a data link resetting procedure (see \(sc\ 2.4.7 below) or disconnect 
  19766. the data link (see \(sc\ 2.4.4.3 above) prior to initiating a data link 
  19767. set\(hyup 
  19768. .ce
  19769. procedure (see \(sc\ 2.4.4.1 above).
  19770. .ce
  19771. .parag
  19772. .ce
  19773. 2.4.4.5
  19774. .ce
  19775. \fICollision of unnumbered commands\fR 
  19776. .ce
  19777. .parag
  19778. .ce
  19779. Collision situations shall be resolved in the following way:
  19780. .ce
  19781. .parag
  19782. .ce
  19783. 2.4.4.5.1
  19784. .ce
  19785. If the sent and received unnumbered commands are the
  19786. .ce
  19787. same, the DCE and the DTE shall each send the UA response at the earliest
  19788. .ce
  19789. possible opportunity. The DCE shall enter the indicated phase either,
  19790. .ce
  19791. .parag
  19792. .ce
  19793.  
  19794. .ce
  19795. 1)
  19796. .ce
  19797. after receiving the UA response,
  19798. .ce
  19799. .parag
  19800. .ce
  19801. 2)
  19802. .ce
  19803. after sending the UA response, or
  19804. .ce
  19805. .parag
  19806. .ce
  19807. 3)
  19808. .ce
  19809. after timing out waiting for the UA response having sent a
  19810. .ce
  19811. UA response.
  19812. .ce
  19813. .parag
  19814. .ce
  19815. In the case of 2) above, the DCE will accept a subsequent UA
  19816. .ce
  19817. response to the mode\(hysetting command it issued without causing an exception
  19818. .ce
  19819. condition if received within the time\(hyout interval.
  19820. .ce
  19821. .parag
  19822. .ce
  19823.  
  19824. .ce
  19825. 2.4.4.5.2
  19826. .ce
  19827. If the sent and received unnumbered commands are
  19828. .ce
  19829. different, the DCE and the DTE shall each enter the disconnected phase and
  19830. .ce
  19831. issue a DM response at the earliest possible opportunity.
  19832. .ce
  19833. .parag
  19834. .ce
  19835. 2.4.4.6
  19836. .ce
  19837. \fICollision of DM response with SABM/SABME or DISC\fR 
  19838. .ce
  19839.  
  19840. .ce
  19841. \fIcommand\fR 
  19842. .ce
  19843. .parag
  19844. .ce
  19845. When a DM response is issued by the DCE or DTE as an unsolicited
  19846. .ce
  19847. response to request the DTE or DCE, respectively, to issue a mode\(hysetting
  19848. .ce
  19849. command as described in \(sc\ 2.4.4.4, a collision between an SABM/SABME 
  19850. or DISC 
  19851. .ce
  19852. command and the unsolicited DM response may occur. In order to avoid
  19853. .ce
  19854. misinterpretation of the DM response received, the DTE always sends its
  19855. .ce
  19856. SABM/SABME or DISC command with the P\ bit set to\ 1.
  19857. .ce
  19858. .parag
  19859. .ce
  19860. 2.4.4.7
  19861. .ce
  19862. \fICollision of DM responses\fR 
  19863. .ce
  19864. .parag
  19865. .ce
  19866. A contention situation may occur when both the DCE and the DTE
  19867. .ce
  19868. issue a DM response to request a mode\(hysetting command. In this case, the DTE
  19869. .ce
  19870. will issue an SABM/SABME command to resolve the contention situation.
  19871. .ce
  19872. .parag
  19873. .ce
  19874.  
  19875. .ce
  19876. 2.4.5
  19877. .ce
  19878. \fILAPB procedures for information transfer\fR 
  19879. .ce
  19880. .parag
  19881. .ce
  19882. The procedures which apply to the transmission of I\ frames in each direction 
  19883. during the information transfer phase are described below. 
  19884. .ce
  19885. .parag
  19886. .ce
  19887. In the following, \*Qnumber one higher\*U is in reference to a
  19888. .ce
  19889. continuously repeated sequence series, i.e., 7 is 1\ higher than 6 and 0 is
  19890. .ce
  19891. 1\ higher than 7 for modulo\ 8 series, and 127 is 1\ higher than 126 and 0 is
  19892. .ce
  19893. 1\ higher than 127 for modulo\ 128 series.
  19894. .ce
  19895. .parag
  19896. .ce
  19897. 2.4.5.1
  19898. .ce
  19899. \fISending I frames\fR 
  19900. .ce
  19901. .parag
  19902. .ce
  19903. When the DCE has an I frame to transmit (i.e. an I frame not
  19904. .ce
  19905. already transmitted, or having to be retransmitted as described in \(sc\ 
  19906. 2.4.5.6 
  19907. .ce
  19908. below), it will transmit it with an N(S) equal to its current send state
  19909. .ce
  19910. variable V(S), and an N(R) equal to its current receive state variable 
  19911. V(R). At the end of the transmission of the I\ frame, the DCE will increment 
  19912. its send 
  19913. .ce
  19914. state variable V(S) by\ 1.
  19915. .ce
  19916. .parag
  19917. .ce
  19918. If Timer T1 is not running at the time of transmission of an I frame, it 
  19919. will be started. 
  19920. .ce
  19921. .parag
  19922. .ce
  19923. If the send state variable V(S) is equal to the last value of N(R)
  19924. .ce
  19925. received plus \fIk\fR 
  19926. .ce
  19927. (where \fIk\fR 
  19928. .ce
  19929. is the maximum number of outstanding I\ frames \(em
  19930. .ce
  19931. see \(sc\ 2.4.8.6 below), the DCE will not transmit any new I\ frames, but may
  19932. .ce
  19933. retransmit an I\ frame as described in \(sc\(sc\ 2.4.5.6 or 2.4.5.9 below.
  19934. .ce
  19935. .parag
  19936. .ce
  19937. When the DCE is in the busy condition, it may still transmit I frames, 
  19938. provided that the DTE is not busy. When the DCE is in the frame rejection 
  19939. .ce
  19940. condition, it will stop transmitting I\ frames.
  19941. .ce
  19942. .parag
  19943. .ce
  19944. 2.4.5.2
  19945. .ce
  19946. \fIReceiving an I frame\fR 
  19947. .ce
  19948. .parag
  19949. .ce
  19950. 2.4.5.2.1
  19951. .ce
  19952. When the DCE is not in a busy condition and receives a valid I\ frame whose 
  19953. send sequence number N(S) is equal to the DCE receive state 
  19954. .ce
  19955. variable V(R), the DCE will accept the information field of this frame,
  19956. .ce
  19957. increment by one its receive state variable V(R), and act as follows:
  19958. .ce
  19959. .parag
  19960. .ce
  19961.  
  19962. .ce
  19963. a)
  19964. .ce
  19965. If the DCE is still not in a busy condition:
  19966. .ce
  19967. .parag
  19968. .ce
  19969. i)
  19970. .ce
  19971. If an I frame is available for transmission by the
  19972. .ce
  19973. DCE, it may act as in \(sc\ 2.4.5.1 above and acknowledge
  19974. .ce
  19975. the received I frame by setting N(R) in the control field
  19976. .ce
  19977. of the next transmitted I\ frame to the value of the DCE
  19978. .ce
  19979. receive state variable V(R). Alternatively, the DCE may
  19980. .ce
  19981. acknowledge the received I\ frame by transmitting an RR
  19982. .ce
  19983. frame with the N(R) equal to the value of the DCE receive
  19984. .ce
  19985. state variable V(R).
  19986. .ce
  19987. .parag
  19988. .ce
  19989. ii)
  19990. .ce
  19991. If no I frame is available for transmission by the
  19992. .ce
  19993. DCE, it will transmit an RR frame with N(R) equal to the
  19994. .ce
  19995. value of the DCE receive state variable V(R).
  19996. .ce
  19997. .parag
  19998. .ce
  19999.  
  20000. .ce
  20001. b)
  20002. .ce
  20003. If the DCE is now in a busy condition, it will transmit an
  20004. .ce
  20005. RNR frame with N(R) equal to the value of the DCE receive
  20006. .ce
  20007. state variable V(R) (see \(sc\ 2.4.5.8).
  20008. .ce
  20009. .parag
  20010. .ce
  20011.  
  20012. .ce
  20013. 2.4.5.2.2
  20014. .ce
  20015. When the DCE is in a busy condition, it may ignore the
  20016. .ce
  20017. information field contained in any received I\ frame.
  20018. .ce
  20019. .parag
  20020. .ce
  20021. 2.4.5.3
  20022. .ce
  20023. \fIReception of invalid frames\fR 
  20024. .ce
  20025. .parag
  20026. .ce
  20027. When the DCE receives an invalid frame (see \(sc\ 2.3.5.3), this frame 
  20028. will be discarded. 
  20029. .ce
  20030. .parag
  20031. .ce
  20032. 2.4.5.4
  20033. .ce
  20034. \fIReception of out\(hyof\(hysequence I frames\fR 
  20035. .ce
  20036. .parag
  20037. .ce
  20038. When the DCE receives a valid I frame whose send sequence number
  20039. .ce
  20040. N(S) is incorrect, i.e.,\ not equal to the current DCE receive state variable
  20041. .ce
  20042. V(R), it will discard the information field of the I\ frame and transmit 
  20043. an REJ frame with the N(R) set to one higher than the N(S) of the last 
  20044. correctly 
  20045. .ce
  20046. received I\ frame. The REJ frame will be a command frame with the P\ bit 
  20047. set to\ 1 if an acknowledged transfer of the retransmission request is 
  20048. required; 
  20049. .ce
  20050. otherwise the REJ frame may be either a command or a response frame. The DCE
  20051. .ce
  20052. will then discard the information field of all I\ frames received until the
  20053. .ce
  20054. expected I\ frame is correctly received. When receiving the expected I\ frame,
  20055. .ce
  20056. the DCE will then acknowledge the I\ frame as described in \(sc\ 2.4.5.2 
  20057. above. The DCE will use the N(R) and P\ bit information in the discarded 
  20058. I\ frames as 
  20059. .ce
  20060. described in \(sc\ 2.3.5.2 above.
  20061. .ce
  20062. .parag
  20063. .ce
  20064. 2.4.5.5
  20065. .ce
  20066. \fIReceiving acknowledgement\fR 
  20067. .ce
  20068. .parag
  20069. .ce
  20070. When correctly receiving an I frame or a supervisory frame (RR, RNR or 
  20071. REJ), even in the busy condition, the DCE will consider the N(R) contained 
  20072. in this frame as an acknowledgement for all I\ frames it has transmitted 
  20073. with an N(S) up to and including the received N(R)\(em1. The DCE will stop 
  20074. Timer\ T1 when it correctly receives an I\ frame or a supervisory frame 
  20075. with the N(R) higher 
  20076. .ce
  20077. than the last received N(R) (actually acknowledging some I\ frames), or 
  20078. an REJ frame with an N(R) equal to the last received N(R). 
  20079. .ce
  20080. .parag
  20081. .ce
  20082.  
  20083. .ce
  20084. If Timer T1 has been stopped by the receipt on an I, RR or RNR frame, and 
  20085. if there are outstanding I\ frames still unacknowledged, the DCE will 
  20086. .ce
  20087. restart Timer\ T1. If Timer\ T1 then runs out, the DCE will follow the 
  20088. recovery procedure (\(sc\ 2.4.5.9 below) with respect to the unacknowledged 
  20089. I\ frames. If 
  20090. .ce
  20091. Timer\ T1 has been stopped by the receipt of an REJ frame, the DCE will 
  20092. follow the retransmission procedures in \(sc\ 2.4.5.6 below. 
  20093. .ce
  20094. .parag
  20095. .ce
  20096. 2.4.5.6
  20097. .ce
  20098. \fIReceiving an REJ frame\fR 
  20099. .ce
  20100. .parag
  20101. .ce
  20102. When receiving an REJ frame, the DCE will set its send state
  20103. .ce
  20104. variable V(S) to the N(R) received in the REJ control field. It will transmit 
  20105. the corresponding I\ frame as soon as it is available or retransmit it 
  20106. in 
  20107. .ce
  20108. accordance with the procedures described in \(sc\ 2.4.5.1 above. (Re)transmission 
  20109. will conform to the following procedure: 
  20110. .ce
  20111. .parag
  20112. .ce
  20113. i)
  20114. .ce
  20115. if the DCE is transmitting a supervisory command or response
  20116. .ce
  20117. when it receives the REJ frame, it will complete that
  20118. .ce
  20119. transmission before commencing transmission of the requested
  20120. .ce
  20121. I\ frame;
  20122. .ce
  20123. .parag
  20124. .ce
  20125.  
  20126. .ce
  20127. ii)
  20128. .ce
  20129. if the DCE is transmitting an unnumbered command or
  20130. .ce
  20131. response when it receives the REJ frame, it will ignore the
  20132. .ce
  20133. request for retransmission;
  20134. .ce
  20135. .parag
  20136. .ce
  20137. iii)
  20138. .ce
  20139. if the DCE is transmitting an I frame when the REJ frame
  20140. .ce
  20141. is received, it may abort the I\ frame and commence transmission
  20142. .ce
  20143. of the requested I\ frame immediately after abortion;
  20144. .ce
  20145. .parag
  20146. .ce
  20147. iv)
  20148. .ce
  20149. if the DCE is not transmitting any frame when the REJ frame
  20150. .ce
  20151. is received, it will commence transmission of the requested
  20152. .ce
  20153. I\ frame immediately.
  20154. .ce
  20155. .parag
  20156. .ce
  20157. In all cases, if other unacknowledged I frames had already been
  20158. .ce
  20159. transmitted following the one indicated in the REJ frame, then those I 
  20160. frames will be retransmitted by the DCE following the retransmission of 
  20161. the requested I\ frame. Other I\ frames not yet transmitted may be transmitted 
  20162. following the 
  20163. .ce
  20164. retransmitted I\ frames.
  20165. .ce
  20166. .parag
  20167. .ce
  20168. If the REJ frame was received from the DTE as a command with the P bit 
  20169. set to\ 1, the DCE will transmit an RR, RNR or REJ response with the F 
  20170. bit set to\ 1 before transmitting or retransmitting the corresponding I\ 
  20171. frame. 
  20172. .ce
  20173. .parag
  20174. .ce
  20175. 2.4.5.7
  20176. .ce
  20177. \fIReceiving an RNR frame\fR 
  20178. .ce
  20179. .parag
  20180. .ce
  20181. After receiving an RNR frame whose N(R) acknowledges all frames
  20182. .ce
  20183. previously transmitted, the DCE will stop Timer\ T1 and may then transmit
  20184. .ce
  20185. an I\ frame, with the P\ bit set to\ 0, whose send sequence number is
  20186. .ce
  20187. equal to the N(R) indicated in the RNR frame, restarting Timer\ T1 as it 
  20188. does. After receiving an RNR frame whose N(R) indicates a previously transmitted 
  20189. .ce
  20190. frame, the DCE will not transmit or retransmit any I\ frame, Timer\ T1 being
  20191. .ce
  20192. already running. In either case, if the Timer\ T1 runs out before receipt 
  20193. of a busy clearance indication, the DCE will follow the procedure described 
  20194. in 
  20195. .ce
  20196. \(sc\ 2.4.5.9\ below. In any case, the DCE will not transmit any other 
  20197. I\ frames 
  20198. .ce
  20199. before receiving an RR or REJ frame, or before the completion of a link
  20200. .ce
  20201. resetting procedure.
  20202. .ce
  20203. .parag
  20204. .ce
  20205. Alternatively, after receiving an RNR frame, the DCE may wait for a
  20206. .ce
  20207. period of time (e.g.,\ the length of the Timer\ T1) and then transmit a
  20208. .ce
  20209. supervisory command frame (RR, RNR or REJ) with the P\ bit set to\ 1, and 
  20210. start Timer\ T1, in order to determine if there is any change in the receive 
  20211. status of the DTE. The DTE shall respond to the P\ bit set to\ 1 with a 
  20212. supervisory 
  20213. .ce
  20214. response frame (RR, RNR or REJ) with the F\ bit set to\ 1 indicating either
  20215. .ce
  20216. continuance of the busy condition (RNR) or clearance of the busy condition 
  20217. (RR or REJ). Upon receipt of the DTE response, Timer\ T1 is stopped. 
  20218. .ce
  20219. .parag
  20220. .ce
  20221.  
  20222. .ce
  20223. 1)
  20224. .ce
  20225. If the response is the RR or REJ response, the busy
  20226. .ce
  20227. condition is cleared and the DCE may transmit I\ frames beginning
  20228. .ce
  20229. with the I\ frame identified by the N(R) in the received response
  20230. .ce
  20231. frame.
  20232. .ce
  20233. .parag
  20234. .ce
  20235. 2)
  20236. .ce
  20237. If the response is the RNR response, the busy condition
  20238. .ce
  20239. still exists, and the DCE will after a period of time (e.g.\ the
  20240. .ce
  20241. length of Timer\ T1) repeat the enquiry of the DTE receive
  20242. .ce
  20243. status.
  20244. .ce
  20245. .parag
  20246. .ce
  20247. If Timer T1 runs out before a status response is received, the
  20248. .ce
  20249. enquiry process above is repeated. If N2 attempts to get a status response 
  20250. fail (i.e.\ Timer\ T1 runs out N2\ times), the DCE will initiate a data 
  20251. link resetting procedure as described in \(sc\ 2.4.7.2\ below or will transmit 
  20252. a DM response to ask the DTE to initiate a data link set\(hyup procedure 
  20253. as described in \(sc\ 2.4.4.1 and enter the disconnected phase. The value 
  20254. of N2 is defined in \(sc\ 2.4.8.4\ below. 
  20255. .ce
  20256. .parag
  20257. .ce
  20258.  
  20259. .ce
  20260. If, at any time during the enquiry process, an unsolicited RR or REJ frame 
  20261. is received from the DTE, it will be considered to be an indication of 
  20262. .ce
  20263. clearance of the busy condition. Should the unsolicited RR or REJ frame be a
  20264. .ce
  20265. command frame with the P bit set to\ 1, the appropriate response frame 
  20266. with the F\ bit set to 1 must be transmitted before the DCE may resume 
  20267. transmission of 
  20268. .ce
  20269. I\ frames. If Timer\ T1 is running, the DCE will wait for the non\(hybusy 
  20270. response with the F bit set to\ 1 or will wait for Timer\ T1 to run out 
  20271. and then either 
  20272. .ce
  20273. may reinitiate the enquiry process in order to realize a successful P/F bit
  20274. .ce
  20275. exchange or may resume transmission of I frames beginning with the I\ frame
  20276. .ce
  20277. identified by the N(R) in the received RR or REJ frame.
  20278. .ce
  20279. .parag
  20280. .ce
  20281. 2.4.5.8
  20282. .ce
  20283. \fIDCE busy condition\fR 
  20284. .ce
  20285. .parag
  20286. .ce
  20287. When the DCE enters a busy condition, it will transmit an RNR frame at 
  20288. the earliest opportunity. The RNR frame will be a command frame with the 
  20289. P bit set to\ 1 if an acknowledged transfer of the busy condition indication 
  20290. is 
  20291. .ce
  20292. required; otherwise the RNR frame may be either a command or a response 
  20293. frame. While in the busy condition, the DCE will accept and process supervisory 
  20294. .ce
  20295. frames, will accept and process the contents of the N(R) fields of I\ frames,
  20296. .ce
  20297. and will return an RNR response with the F bit set to\ 1 if it receives a
  20298. .ce
  20299. supervisory command or I command frame with the P bit set to\ 1. To clear the
  20300. .ce
  20301. busy condition, the DCE will transmit either an REJ frame or an RR frame, with
  20302. .ce
  20303. N(R) set to the current receive state variable V(R), depending on whether or
  20304. .ce
  20305. not it discarded information fields of correctly received I\ frames. The REJ
  20306. .ce
  20307. frame or the RR frame will be a command frame with the P bit set to\ 1 if an
  20308. .ce
  20309. acknowledged transfer of the busy\(hyto\(hynon\(hybusy transition is required, 
  20310. otherwise the REJ frame or the RR frame may be either a command or a response 
  20311. frame. 
  20312. .ce
  20313. .parag
  20314. .ce
  20315.  
  20316. .ce
  20317. 2.4.5.9
  20318. .ce
  20319. \fIWaiting acknowledgement\fR 
  20320. .ce
  20321. .parag
  20322. .ce
  20323. The DCE maintains an internal transmission attempt variable which is set 
  20324. to\ 0 when the DCE sends a UA response, when the DCE receives a UA 
  20325. .ce
  20326. response or an RNR command or response, or when the DCE correctly receives 
  20327. an I\ frame or supervisory frame with the N(R) higher than the last received 
  20328. N(R) (actually acknowledging some outstanding I\ frames). 
  20329. .ce
  20330. .parag
  20331. .ce
  20332. If Timer T1 runs out waiting for the acknowledgement from the DTE for an 
  20333. I\ frame transmitted, the DCE will enter the timer recovery condition, 
  20334. add 
  20335. .ce
  20336. one to its transmission attempt variable and set an internal variable \fIx\fR 
  20337. .ce
  20338. to
  20339. .ce
  20340. the current value of its send state variable V(S). The DCE will then restart
  20341. .ce
  20342. Timer T1, set its send state variable V(S) to the last value of N(R) received 
  20343. from the DTE and retransmit the corresponding I\ frame with the P bit set 
  20344. to\ 1, or transmit an appropriate supervisory command frame (RR, RNR or 
  20345. REJ) with the P\ bit set to\ 1. 
  20346. .ce
  20347. .parag
  20348. .ce
  20349.  
  20350. .ce
  20351. The timer recovery condition is cleared when the DCE receives a valid supervisory 
  20352. frame with the F\ bit\ set to\ 1. 
  20353. .ce
  20354. .parag
  20355. .ce
  20356. If, while in the timer recovery condition, the DCE correctly receives a 
  20357. supervisory frame with the F bit set to\ 1 and with the N(R) within the 
  20358. range from its current send state variable V(S) to \fIx\fR 
  20359. .ce
  20360. included, it will clear the
  20361. .ce
  20362. timer recovery condition (including stopping Timer\ T1) and set its send 
  20363. state variable V(S) to the value of the received N(R), and may then resume 
  20364. with 
  20365. .ce
  20366. I\ frame transmission or retransmission, as appropriate.
  20367. .ce
  20368. .parag
  20369. .ce
  20370. If, while in the timer recovery condition, the DCE correctly receives an 
  20371. I or supervisory frame with the P/F bit set to\ 0 and with a valid N(R) 
  20372. (see \(sc\ 2.3.4.9), it will not clear the timer recovery condition. The 
  20373. value of the 
  20374. .ce
  20375. received N(R) may be used to update the send state variable V(S). However, 
  20376. the DCE may decide to keep the last transmitted I\ frame in store (even 
  20377. if it is 
  20378. .ce
  20379. acknowledged) in order to be able to retransmit it with the P bit set to\ 
  20380. 1 when Timer\ T1 runs out at a later time. 
  20381. .ce
  20382. .parag
  20383. .ce
  20384.  
  20385. .ce
  20386. If the received supervisory frame with the P/F bit set to\ 0 is an REJ 
  20387. frame with a valid N(R), the DCE may either immediately initiate 
  20388. .ce
  20389. (re)transmission from the value of the send state variable V(S), or it may
  20390. .ce
  20391. ignore the request for retransmission and wait until the supervisory frame 
  20392. with the F bit set to\ 1 is received before initiating (re)transmission 
  20393. of frames 
  20394. .ce
  20395. from the value identified in the N(R) field of the supervisory frame with 
  20396. the F\ bit set to\ 1. In the case of immediate retransmission, in order 
  20397. to prevent 
  20398. .ce
  20399. duplicate retransmissions following the clearance of the timer recovery
  20400. .ce
  20401. condition, the DCE shall inhibit retransmission of a specific I\ frame [same
  20402. .ce
  20403. N(R) in the same numbering cycle] if the DCE has retransmitted that I\ 
  20404. frame as the result of a received REJ frame with the P/F bit set to\ 0. 
  20405. .ce
  20406. .parag
  20407. .ce
  20408. If, while in the timer recovery condition, the DCE receives a REJ
  20409. .ce
  20410. command with the P bit set to\ 1, the DCE will respond immediately with an
  20411. .ce
  20412. appropriate supervisory response with the F bit set to\ 1. The DCE may 
  20413. then use the value of the N(R) in the REJ command to update the send state 
  20414. variable 
  20415. .ce
  20416. V(S), and may either immediately begin (re)transmission from the value N(R)
  20417. .ce
  20418. indicated in the REJ frame or ignore the request for retransmission and wait
  20419. .ce
  20420. until the supervisory frame with the F bit set to\ 1 is received before
  20421. .ce
  20422. initiating (re)transmission of I\ frames from the value identified in the 
  20423. N(R) field of the supervisory frame with the F\ bit set to\ 1. In the case 
  20424. of 
  20425. .ce
  20426. immediate retransmission, in order to prevent duplicate retransmissions
  20427. .ce
  20428. following the clearance of the timer recovery condition, the DCE shall 
  20429. inhibit retransmission of a specific I\ frame [same N(R) in the same numbering 
  20430. cycle] 
  20431. .ce
  20432. if the DCE has retransmitted that I\ frame as the result of the received REJ
  20433. .ce
  20434. command with the P\ bit set to\ 1.
  20435. .ce
  20436. .parag
  20437. .ce
  20438. If Timer T1 runs out in the timer recovery condition, and no I or
  20439. .ce
  20440. supervisory frame with the P/F bit set to 0 and with a valid N(R) has been
  20441. .ce
  20442. received, or no REJ command with the P bit set to\ 1 and with a valid N(R) 
  20443. has been received, the DCE will add one to its transmission attempt variable, 
  20444. .ce
  20445. restart Timer\ T1, and either retransmit the I frame sent with the P bit set
  20446. .ce
  20447. to\ 1 or transmit an appropriate supervisory command with the P bit set to\ 1.
  20448. .ce
  20449. .parag
  20450. .ce
  20451.  
  20452. .ce
  20453. If the transmission attempt variable is equal to N2, the DCE will
  20454. .ce
  20455. initiate a data link resetting procedure as described in \(sc\ 2.4.7.2 
  20456. below, or 
  20457. .ce
  20458. will transmit a DM response to ask the DTE to initiate a data link set\(hyup
  20459. .ce
  20460. procedure as described in \(sc\ 2.4.4.1 above and enter the disconnected 
  20461. phase. N2 is a system parameter (see \(sc\ 2.4.8.4 below). 
  20462. .ce
  20463. .parag
  20464. .ce
  20465. \fINote\fR 
  20466. .ce
  20467. \ \(em\ Although the DCE may implement the internal variable \fIx\fR 
  20468. .ce
  20469. ,
  20470. .ce
  20471. other mechanisms do exist that achieve the identical function.
  20472. .ce
  20473. .parag
  20474. .ce
  20475. 2.4.6
  20476. .ce
  20477. \fILAPB conditions for \fR 
  20478. .ce
  20479. \fIdata link resetting or data link\fR 
  20480. .ce
  20481.  
  20482. .ce
  20483. \fIre\(hyinitialization\fR 
  20484. .ce
  20485. \fI(data link set\(hyup)\fR 
  20486. .ce
  20487. .parag
  20488. .ce
  20489. 2.4.6.1
  20490. .ce
  20491. When the DCE receives, during the information transfer phase, a
  20492. .ce
  20493. frame which is not invalid (see \(sc\ 2.3.5.3) with one of the conditions 
  20494. listed in \(sc\ 2.3.4.9 above, the DCE will request the DTE to initiate 
  20495. a data link resetting procedure by transmitting an FRMR response to the 
  20496. DTE as described in 
  20497. .ce
  20498. \(sc\ 2.4.7.3.
  20499. .ce
  20500. .parag
  20501. .ce
  20502. 2.4.6.2
  20503. .ce
  20504. When the DCE receives, during the information transfer phase, an FRMR response 
  20505. from the DTE, the DCE will either initiate the data link 
  20506. .ce
  20507. resetting procedures itself as described in \(sc\ 2.4.7.2 or return a DM 
  20508. response to ask the DTE to initiate the data link set\(hyup (initialization) 
  20509. procedure as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  20510. the DCE will enter 
  20511. .ce
  20512. the disconnected phase as described in \(sc\ 2.4.4.4.2.
  20513. .ce
  20514. .parag
  20515. .ce
  20516. 2.4.6.3
  20517. .ce
  20518. When the DCE receives, during the information transfer phase, a UA response, 
  20519. or an unsolicited response with the F bit set to\ 1, the DCE may 
  20520. .ce
  20521. either initiate the data link resetting procedures itself as described in
  20522. .ce
  20523. \(sc\ 2.4.7.2, or return a DM response to ask the DTE to initiate the data link
  20524. .ce
  20525. set\(hyup (initialization) procedure as described in \(sc\ 2.4.4.1. After 
  20526. transmitting a DM response, the DCE will enter the disconnected phase as 
  20527. described in 
  20528. .ce
  20529. \(sc\ 2.4.4.4.2.
  20530. .ce
  20531. .parag
  20532. .ce
  20533. 2.4.6.4
  20534. .ce
  20535. When the DCE receives, during the information transfer phase, a DM response 
  20536. from the DTE, the DCE will either initiate the data link set\(hyup 
  20537. .ce
  20538. (initialization) procedures itself as described in \(sc\ 2.4.4.1, or return 
  20539. a DM 
  20540. .ce
  20541. response to ask the DTE to initiate the data link set\(hyup (initialization)
  20542. .ce
  20543. procedures as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  20544. the DCE will enter the disconnected phase as described in \(sc\ 2.4.4.4.2. 
  20545. .ce
  20546. .parag
  20547. .ce
  20548.  
  20549. .ce
  20550. 2.4.7
  20551. .ce
  20552. \fILAPB procedure for data link resetting\fR 
  20553. .ce
  20554. .parag
  20555. .ce
  20556. 2.4.7.1
  20557. .ce
  20558. The data link resetting procedure is used to initialize both
  20559. .ce
  20560. directions of information transfer according to the procedure described 
  20561. below. The data link resetting procedure only applies during the information 
  20562. transfer phase. 
  20563. .ce
  20564. .parag
  20565. .ce
  20566. 2.4.7.2
  20567. .ce
  20568. Either the DTE or the DCE may initiate the data link resetting
  20569. .ce
  20570. procedure. The data link resetting procedure indicates a clearance of a DCE
  20571. .ce
  20572. and/or DTE busy condition, if present.
  20573. .ce
  20574. .parag
  20575. .ce
  20576. The DTE shall initiate a data link resetting by transmitting an
  20577. .ce
  20578. SABM/SABME command to the DCE. If, upon correct receipt of the SABM/SABME
  20579. .ce
  20580. command, the DCE determines that it can continue in the information transfer
  20581. .ce
  20582. phase, it will return a UA response to the DTE, will reset its send and 
  20583. receive state variables V(S) and V(R) to zero, and will remain in the information 
  20584. .ce
  20585. transfer phase. If, upon correct receipt of the SABM/SABME command, the DCE
  20586. .ce
  20587. determines that it cannot remain in the information transfer phase, it will
  20588. .ce
  20589. return a DM response as a denial to the resetting request and will enter the
  20590. .ce
  20591. disconnected phase.
  20592. .ce
  20593. .parag
  20594. .ce
  20595. The DCE will initiate a data link resetting by transmitting an
  20596. .ce
  20597. SABM/SABME command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 
  20598. below). Upon reception of a UA response from the DTE, the DCE will reset 
  20599. its send and receive state variables V(S) and V(R) to zero, will stop its 
  20600. Timer\ T1, and will remain in the information transfer phase. Upon reception 
  20601. of a DM response from the DTE as a denial to the data link resetting request, 
  20602. the DCE will stop its Timer\ T1 and will enter the disconnected phase. 
  20603. .ce
  20604. .parag
  20605. .ce
  20606. The DCE, having sent an SABM/SABME command, will ignore and discard
  20607. .ce
  20608. any frames received from the DTE except an SABM/SABME or DISC command, 
  20609. or a UA or DM response. The receipt of an SABM/SABME or DISC command from 
  20610. the DTE will result in a collision situation that is resolved per \(sc\ 
  20611. 2.4.4.5 above. Frames 
  20612. .ce
  20613. other than the UA or DM response sent in response to a received SABM/SABME 
  20614. or DISC command will be sent only after the data link is reset and if no 
  20615. .ce
  20616. outstanding SABM/SABME command exists.
  20617. .ce
  20618. .parag
  20619. .ce
  20620.  
  20621. .ce
  20622. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  20623. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  20624. .ce
  20625. resend the SABM/SABME command and will restart Timer\ T1. After N2 attempts 
  20626. to reset the data link, the DCE will initiate appropriate higher layer 
  20627. recovery 
  20628. .ce
  20629. action and will enter the disconnected phase. The value of N2 is defined in
  20630. .ce
  20631. \(sc\ 2.4.8.4 below.
  20632. .ce
  20633. .parag
  20634. .ce
  20635. 2.4.7.3
  20636. .ce
  20637. The DCE may ask the DTE to reset the data link by transmitting an FRMR 
  20638. response (see \(sc\ 2.4.6.1 above). After transmitting an FRMR response, 
  20639. .ce
  20640. the DCE will enter the frame rejection condition.
  20641. .ce
  20642. .parag
  20643. .ce
  20644. The frame rejection condition is cleared when the DCE receives an SABM/SABME 
  20645. command, a DISC command, a FRMR response, or a DM response; or if 
  20646. .ce
  20647. the DCE transmits an SABM/SABME command, a DISC command, or a DM response.
  20648. .ce
  20649. Other commands received while in the frame rejection condition will cause 
  20650. the DCE to retransmit the FRMR response with the same information field 
  20651. as 
  20652. .ce
  20653. originally transmitted.
  20654. .ce
  20655. .parag
  20656. .ce
  20657. The DCE may start Timer\ T1 on transmission of the FRMR response. If
  20658. .ce
  20659. Timer\ T1 runs out before the frame rejection condition is cleared, the 
  20660. DCE may retransmit the FRMR response, and restart T1. After N2 attempts 
  20661. (time outs) to get the DTE to reset the data link, the DCE may reset the 
  20662. data link itself as described in \(sc\ 2.4.7.2 above. The value of N2 is 
  20663. defined in \(sc\ 2.4.8.4 below. 
  20664. .ce
  20665. .parag
  20666. .ce
  20667.  
  20668. .ce
  20669. In the frame rejection condition, I frames and supervisory frames will 
  20670. not be transmitted by the DCE. Also, received I frames and supervisory 
  20671. frames will be discarded by the DCE except for the observance of a P bit 
  20672. set to\ 1. 
  20673. .ce
  20674. When an additional FRMR response must be transmitted by the DCE as a result 
  20675. of the receipt of a P\ bit set to 1 while Timer\ T1 is running, Timer\ 
  20676. T1 will 
  20677. .ce
  20678. continue to run. Upon reception of an FRMR response (even during a frame
  20679. .ce
  20680. rejection condition), the DCE will initiate a resetting procedure by
  20681. .ce
  20682. transmitting an SABM/SABME command as described in \(sc\ 2.4.7.2 above, or will
  20683. .ce
  20684. transmit a DM response to ask the DTE to initiate the data link set\(hyup
  20685. .ce
  20686. procedure as described in \(sc\ 2.4.4.1 and enter the disconnected phase.
  20687. .ce
  20688. .parag
  20689. .ce
  20690. 2.4.8
  20691. .ce
  20692. \fIList of \fR 
  20693. .ce
  20694. \fILAPB system parameters\fR 
  20695. .ce
  20696. .parag
  20697. .ce
  20698. The DCE and DTE system parameters are as follows:
  20699. .ce
  20700. .parag
  20701. .ce
  20702.  
  20703. .ce
  20704. 2.4.8.1
  20705. .ce
  20706. \fITimer\fR 
  20707. .ce
  20708. \fIT1\fR 
  20709. .ce
  20710. .parag
  20711. .ce
  20712. The value of the DTE Timer T1 system parameter may be different
  20713. .ce
  20714. than the value of the DCE Timer T1 system parameter. These values shall 
  20715. be made known to both the DTE and the DCE, and agreed to for a period of 
  20716. time by both the DTE and the DCE. 
  20717. .ce
  20718. .parag
  20719. .ce
  20720. The period of Timer T1, at the end of which retransmission of a frame may 
  20721. be initiated (see \(sc\ 2.4.4 and \(sc\ 2.4.5 above for the DCE), shall 
  20722. take into account whether T1 is started at the beginning or the end of 
  20723. the transmission of a frame. 
  20724. .ce
  20725. .parag
  20726. .ce
  20727. The proper operation of the procedure requires that the transmitter's (DCE 
  20728. or DTE) Timer\ T1 be greater than the maximum time between transmission 
  20729. of a frame (SABM/SABME, DISC, I\ or supervisory command, or DM or FRMR 
  20730. response) 
  20731. .ce
  20732. and the reception of the corresponding frame returned as an answer to that
  20733. .ce
  20734. frame (UA, DM or acknowledging frame). Therefore, the receiver (DCE or DTE)
  20735. .ce
  20736. should not delay the response or acknowledging frame returned to one of the
  20737. .ce
  20738. above frames by more than a value\ T2, where T2 is a system parameter (see
  20739. .ce
  20740. \(sc\ 2.4.8.2).
  20741. .ce
  20742. .parag
  20743. .ce
  20744.  
  20745. .ce
  20746. The DCE will not delay the response or acknowledging frame returned to 
  20747. one of the above DTE frames by more than a period\ T2. 
  20748. .ce
  20749. .parag
  20750. .ce
  20751. 2.4.8.2
  20752. .ce
  20753. \fIParameter T2\fR 
  20754. .ce
  20755. .parag
  20756. .ce
  20757. The value of the DTE parameter T2 may be different than the value of the 
  20758. DCE parameter T2. These values shall be made known to both the DTE and 
  20759. the DCE, and agreed to for a period of time by both the DTE and the DCE. 
  20760. .ce
  20761. .parag
  20762. .ce
  20763.  
  20764. .ce
  20765. The period of parameter T2 shall indicate the amount of time
  20766. .ce
  20767. available at the DCE or DTE before the acknowledging frame must be initiated 
  20768. in order to ensure its receipt by the DTE or DCE, respectively, prior to 
  20769. Timer\ T1 running out at the DTE or DCE (parameter\ T2\ <\ Timer\ T1). 
  20770. .ce
  20771. .parag
  20772. .ce
  20773. \fINote\fR 
  20774. .ce
  20775. \ \(em\ The period of parameter T2 shall take into account the
  20776. .ce
  20777. following timing factors: the transmission time of the acknowledging frame, 
  20778. the propagation time over the access data link, the stated processing times 
  20779. at the DCE and the DTE, and the time to complete the transmission of the 
  20780. frame(s) in the DCE or DTE transmit queue that are neither displaceable 
  20781. or modifiable in an orderly manner. 
  20782. .ce
  20783. .parag
  20784. .ce
  20785.  
  20786. .ce
  20787. Given a value for Timer T1 for the DTE or DCE, the value of parameter T2 
  20788. at the DCE or DTE, respectively, must be no larger than T1 minus\ 2 times 
  20789. the propagation time over the access data link, minus the frame processing 
  20790. time at the DCE, minus the frame processing time at the DTE, and minus 
  20791. the transmission time of the acknowledging frame by the DCE or DTE, respectively. 
  20792. .ce
  20793. .parag
  20794. .ce
  20795.  
  20796. .ce
  20797. 2.4.8.3
  20798. .ce
  20799. \fITimer T3\fR 
  20800. .ce
  20801. .parag
  20802. .ce
  20803. The DCE shall support a Timer T3 system parameter, the value of
  20804. .ce
  20805. which shall be made known to the DTE.
  20806. .ce
  20807. .parag
  20808. .ce
  20809. The period of Timer T3, at the end of which an indication of an
  20810. .ce
  20811. observed excessively long idle channel state condition is passed to the 
  20812. Packet Layer, shall be sufficiently greater than the period of the DCE 
  20813. Timer T1 
  20814. .ce
  20815. (i.e.\ T3\ >\ T1) so that the expiration of T3 provides the desired level of
  20816. .ce
  20817. assurance that the data link channel is in a non\(hyactive, non\(hyoperational 
  20818. state, and is in need of data link set\(hyup before normal data link operation 
  20819. can 
  20820. .ce
  20821. resume.
  20822. .ce
  20823. .parag
  20824. .ce
  20825. 2.4.8.4
  20826. .ce
  20827. \fIMaximum number of attempts\fR 
  20828. .ce
  20829. \fIto complete a\fR 
  20830. .ce
  20831.  
  20832. .ce
  20833. \fItransmission N2\fR 
  20834. .ce
  20835. .parag
  20836. .ce
  20837.  
  20838. .ce
  20839. The value of the DTE N2 system parameter may be different than the value 
  20840. of the DCE N2 system parameter. These values shall be made known to both 
  20841. the DTE and the DCE, and agreed to for a period of time by both the DTE 
  20842. and the DCE. 
  20843. .ce
  20844. .parag
  20845. .ce
  20846. The value of N2 shall indicate the maximum number of attempts made by the 
  20847. DCE or DTE to complete the successful transmission of a frame to the DTE 
  20848. or DCE, respectively. 
  20849. .ce
  20850. .parag
  20851. .ce
  20852. 2.4.8.5
  20853. .ce
  20854. \fIMaximum number of bits in an I frame N1\fR 
  20855. .ce
  20856. .parag
  20857. .ce
  20858. The value of the DTE N1 system parameter may be different than the value 
  20859. of the DCE N1 system parameter. These values shall be made known to both 
  20860. the DTE and the DCE. 
  20861. .ce
  20862. .parag
  20863. .ce
  20864. The values of N1 shall indicate the maximum number of bits in an
  20865. .ce
  20866. I\ frame (excluding flags and 0\ bits inserted for transparency) that the 
  20867. DCE or DTE is willing to accept from the DTE or DCE, respectively. 
  20868. .ce
  20869. .parag
  20870. .ce
  20871. In order to allow for universal operation, a DTE should support a
  20872. .ce
  20873. value of DTE N1 which is not less than 1080\ bits (135\ octets). DTEs should 
  20874. be aware that the network may transmit longer packets (see \(sc\ 5.2), 
  20875. that may result in a data link layer problem. 
  20876. .ce
  20877. .parag
  20878. .ce
  20879.  
  20880. .ce
  20881. All networks shall offer to a DTE which requires it, a value of DCE N1 
  20882. which is greater than or equal to 2072\ bits (259\ octets) plus the length 
  20883. of the address, control and FCS fields at the DTE/DCE interface, and greater 
  20884. than or equal to the maximum length of the data packets which may cross 
  20885. the DTE/DCE 
  20886. .ce
  20887. interface plus the length of the address, control and FCS fields at the 
  20888. DTE/DCE interface. 
  20889. .ce
  20890. .parag
  20891. .ce
  20892. Appendix II provides a description of how the values stated above are  derived.
  20893. .ce
  20894. .parag
  20895. .ce
  20896. 2.4.8.6
  20897. .ce
  20898. \fIMaximum number of \fR 
  20899. .ce
  20900. \fIoutstanding I frames k\fR 
  20901. .ce
  20902. .parag
  20903. .ce
  20904. The value of the DTE k system parameter shall be the same as the
  20905. .ce
  20906. value of the DCE k system parameter. This value shall be agreed to for a
  20907. .ce
  20908. period of time by both the DTE and the DCE.
  20909. .ce
  20910. .parag
  20911. .ce
  20912. The value of k shall indicate the maximum number of sequentially
  20913. .ce
  20914. numbered I\ frames that the DTE or DCE may have outstanding
  20915. .ce
  20916. (i.e.\ unacknowledged) at any given time. The value of k shall never exceed
  20917. .ce
  20918. seven for modulo\ 8 operation, or one hundred and twenty\(hyseven for modulo\ 
  20919. 128 
  20920. .ce
  20921. operation. All networks (DCEs) shall support a value of seven. Other values 
  20922. of k (less than and greater than seven) may also be supported by networks 
  20923. .ce
  20924. (DCEs).
  20925. .ce
  20926. .parag
  20927. .ce
  20928. .line
  20929. .ce
  20930. \fBMONTAGE : \(sc 2.5 de cette Recommandation sur le reste de cette page\fR 
  20931. .ce
  20932. .parag
  20933. .ce
  20934.  
  20935. .ce
  20936. .line
  20937. .ad r
  20938. \fBTable 3/X.25 [T3.25], p.\fR 
  20939. .sp 1P
  20940. .RT
  20941. .ad b
  20942. .RT
  20943. .ce
  20944. .line
  20945. .ce
  20946. \fBTable 4/X.25 [T4/X.25], p.\fR 
  20947. .ce
  20948. 2.3.2.1.1
  20949. .ce
  20950. \fIInformation transfer format\fR 
  20951. .ce
  20952. \fI \(em I\fR 
  20953. .ce
  20954. .parag
  20955. .ce
  20956. The I format is used to perform an information transfer. The
  20957. .ce
  20958. functions of N(S), N(R) and P are independent; i.e.,\ each I\ frame has 
  20959. an N(S), an N(R) which may or may not acknowledge additional I\ frames 
  20960. received by the 
  20961. .ce
  20962. DCE or DTE, and a P\ bit that may be set to\ 0 or\ 1.
  20963. .ce
  20964. .parag
  20965. .ce
  20966. 2.3.2.1.2
  20967. .ce
  20968. \fISupervisory format\fR 
  20969. .ce
  20970. \fI \(em S\fR 
  20971. .ce
  20972. .parag
  20973. .ce
  20974. The S format is used to perform data link supervisory control
  20975. .ce
  20976. functions such as acknowledge I\ frames, request retransmission of I\ frames, 
  20977. and to request a temporary suspension of transmission of I\ frames. The 
  20978. functions of N(R) and P/F are independent; i.e.,\ each supervisory frame 
  20979. has an N(R) which 
  20980. .ce
  20981. may or may not acknowledge additional I\ frames received by the DCE or\ 
  20982. DTE, and a P/F\ bit that may be set to\ 0 or\ 1. 
  20983. .ce
  20984. .parag
  20985. .ce
  20986. 2.3.2.1.3
  20987. .ce
  20988. \fIUnnumbered format\fR 
  20989. .ce
  20990. \fI \(em U\fR 
  20991. .ce
  20992. .parag
  20993. .ce
  20994. The U format is used to provide additional data link control
  20995. .ce
  20996. functions. This format contains no sequence numbers, but does include a 
  20997. P/F\ bit that may be set to\ 0 or\ 1. The unnumbered frames have the same 
  20998. control field 
  20999. .ce
  21000. length (one octet) in both basic (modulo\ 8) operation and extended (modulo\ 
  21001. 128) operation. 
  21002. .ce
  21003. .parag
  21004. .ce
  21005. 2.3.2.2
  21006. .ce
  21007. \fIControl field parameters\fR 
  21008. .ce
  21009. .parag
  21010. .ce
  21011. The various parameters associated with the control field formats
  21012. .ce
  21013. are described below.
  21014. .ce
  21015. .parag
  21016. .ce
  21017. 2.3.2.2.1
  21018. .ce
  21019. \fIModulus\fR 
  21020. .ce
  21021. .parag
  21022. .ce
  21023. Each I frame is sequentially numbered and may have the value\ 0
  21024. .ce
  21025. through modulus minus\ 1 (where \*Qmodulus\*U is the modulus of the sequence
  21026. .ce
  21027. numbers). The modulus equals either\ 8 or\ 128 and the sequence numbers cycle
  21028. .ce
  21029. through the entire range.
  21030. .ce
  21031. .parag
  21032. .ce
  21033. 2.3.2.2.2
  21034. .ce
  21035. \fISend state variable\fR 
  21036. .ce
  21037. \fI V(S)\fR 
  21038. .ce
  21039. .parag
  21040. .ce
  21041. The send state variable V(S) denotes the sequence number of the
  21042. .ce
  21043. next in\(hysequence I\ frame to be transmitted. V(S) can take on the values\ 0
  21044. .ce
  21045. through modulus minus\ 1. The value of V(S) is incremented by\ 1 with each
  21046. .ce
  21047. successive I\ frame transmission, but cannot exceed the N(R) of the last
  21048. .ce
  21049. received\ I or supervisory frame by more than the maximum number of outstanding 
  21050. I\ frames\ (\fIk\fR 
  21051. .ce
  21052. ). The value of\ k is defined in \(sc\ 2.4.8.6 below.
  21053. .ce
  21054. .parag
  21055. .ce
  21056.  
  21057. .ce
  21058. 2.3.2.2.3
  21059. .ce
  21060. \fISend sequence number\fR 
  21061. .ce
  21062. \fI N(S)\fR 
  21063. .ce
  21064. .parag
  21065. .ce
  21066. Only I frames contain N(S), the send sequence number of transmitted I\ 
  21067. frames. At the time that an in\(hysequence I\ frame is designated for 
  21068. .ce
  21069. transmission, the value of N(S) is set equal to the value of the send state
  21070. .ce
  21071. variable\ V(S).
  21072. .ce
  21073. .parag
  21074. .ce
  21075. 2.3.2.2.4
  21076. .ce
  21077. \fIReceive state variable\fR 
  21078. .ce
  21079. \fIV(R)\fR 
  21080. .ce
  21081. .parag
  21082. .ce
  21083. The receive state variable V(R) denotes the sequence number of the next 
  21084. in\(hysequence I\ frame expected to be received. V(R) can take on the values 
  21085. 0 through modulus minus\ 1. The value of V(R) is incremented by\ 1 by the 
  21086. receipt of an error\(hyfree, in\(hysequence I\ frame whose send sequence 
  21087. number N(S) equals 
  21088. .ce
  21089. the receive state variable V(R).
  21090. .ce
  21091. .parag
  21092. .ce
  21093. 2.3.2.2.5
  21094. .ce
  21095. \fIReceive sequence number\fR 
  21096. .ce
  21097. \fI N(R)\fR 
  21098. .ce
  21099. .parag
  21100. .ce
  21101. All I frames and supervisory frames contain N(R), the expected send sequence 
  21102. number of the next received I\ frame. At the time that a frame of the above 
  21103. types is designated for transmission, the value of N(R) is set equal to 
  21104. the current value of the receive state variable V(R). N(R) indicates that 
  21105. the DCE or DTE transmitting the N(R) has received correctly all I\ frames 
  21106. numbered up to and including N(R)\ \(em\ 1. 
  21107. .ce
  21108. .parag
  21109. .ce
  21110. 2.3.2.2.6
  21111. .ce
  21112. \fIPoll/Final bit\fR 
  21113. .ce
  21114. \fI P/F\fR 
  21115. .ce
  21116. .parag
  21117. .ce
  21118. All frames contain P/F, the Poll/Final bit. In command frames, the P/F 
  21119. bit is referred to as the P bit. In response frames, it is referred to 
  21120. as the F\ bit. 
  21121. .ce
  21122. .parag
  21123. .ce
  21124. 2.3.3
  21125. .ce
  21126. \fIFunctions of the Poll/Final bit\fR 
  21127. .ce
  21128. .parag
  21129. .ce
  21130. The Poll bit set to 1 is used by the DCE or DTE to solicit (poll) a response 
  21131. from the DTE or DCE, respectively. The Final bit set to\ 1 is used by the 
  21132. DCE or DTE to indicate the response frame transmitted by the DTE or DCE, 
  21133. .ce
  21134. respectively, as a result of the soliciting (poll) command.
  21135. .ce
  21136. .parag
  21137. .ce
  21138. The use of the P/F bit is described in \(sc\ 2.4.3 below.
  21139. .ce
  21140. .parag
  21141. .ce
  21142. 2.3.4
  21143. .ce
  21144. \fICommands and responses\fR 
  21145. .ce
  21146. .parag
  21147. .ce
  21148. For basic (modulo 8) operation, the commands and responses
  21149. .ce
  21150. represented in Table\ 5/X.25 will be supported by the DCE and the\ DTE.
  21151. .ce
  21152. .parag
  21153. .ce
  21154.  
  21155. .ce
  21156. For extended (modulo 128) operation, the commands and responses
  21157. .ce
  21158. represented in Table\ 6/X.25 will be supported by the DCE and the DTE.
  21159. .ce
  21160. .parag
  21161. .ce
  21162.  
  21163. .ce
  21164. For purposes of the LAPB procedures, the supervisory function bit encoding 
  21165. \*Q11\*U and those encodings of the modifier function bits in 
  21166. .ce
  21167. Tables\ 3/X.25 and 4/X.25 not identified in Tables\ 5/X.25 or 6/X.25 are
  21168. .ce
  21169. identified as \*Qundefined or not implemented\*U command and response control
  21170. .ce
  21171. fields.
  21172. .ce
  21173. .parag
  21174. .ce
  21175. The commands and responses in Tables 5/X.25 and 6/X.25 are defined as  follows:
  21176. .ce
  21177. .parag
  21178. .ce
  21179. 2.3.4.1
  21180. .ce
  21181. \fIInformation (I)\fR 
  21182. .ce
  21183. \fI command\fR 
  21184. .ce
  21185. .parag
  21186. .ce
  21187. The function of the information (I) command is to transfer across a data 
  21188. link a sequentially numbered frame containing an information field. 
  21189. .ce
  21190. .parag
  21191. .ce
  21192. .line
  21193. .ce
  21194. \fBTable 5/X.25 [T5.25], p.\fR 
  21195. .ce
  21196. .line
  21197. .ce
  21198. \fBTable 6/X.25 [T6.25], p.\fR 
  21199. .ce
  21200. 2.3.4.2
  21201. .ce
  21202. \fIReceive ready (RR)\fR 
  21203. .ce
  21204. \fI command and response\fR 
  21205. .ce
  21206. .parag
  21207. .ce
  21208. The receive ready (RR) supervisory frame is used by the DCE
  21209. .ce
  21210. or DTE to:
  21211. .ce
  21212. .parag
  21213. .ce
  21214.  
  21215. .ce
  21216. 1)
  21217. .ce
  21218. indicate it is ready to receive an I frame; and
  21219. .ce
  21220. .parag
  21221. .ce
  21222. 2)
  21223. .ce
  21224. acknowledge previously received I frames numbered up to and
  21225. .ce
  21226. including N(R)\ \(em\ 1.
  21227. .ce
  21228. .parag
  21229. .ce
  21230. An RR frame may be used to indicate the clearance of a busy
  21231. .ce
  21232. condition that was reported by the earlier transmission of an RNR frame 
  21233. by that same station (DCE or\ DTE). In addition to indicating the DCE or 
  21234. DTE status, the RR command with the P\ bit set to\ 1 may be used by the 
  21235. DCE or DTE to ask for the status of the DTE or DCE, respectively. 
  21236. .ce
  21237. .parag
  21238. .ce
  21239. 2.3.4.3
  21240. .ce
  21241. \fIReceive not ready (RNR) command and response\fR 
  21242. .ce
  21243. .parag
  21244. .ce
  21245. The receive not ready (RNR) supervisory frame is used by the DCE or DTE 
  21246. to indicate a busy condition; i.e.\ temporary inability to accept 
  21247. .ce
  21248. additional incoming I\ frames. I\ frames numbered up to and including N(R)\ 
  21249. \(em\ 1 
  21250. .ce
  21251. are acknowledged. I\ frame N(R) and any subsequent I\ frames received, if any,
  21252. .ce
  21253. are not acknowledged; the acceptance status of these I\ frames will be 
  21254. indicated in subsequent exchanges. 
  21255. .ce
  21256. .parag
  21257. .ce
  21258. In addition to indicating the DCE or DTE status, the RNR command with the 
  21259. P bit set to\ 1 may be used by an DCE or DTE to ask for the status of the 
  21260. .ce
  21261. DTE or DCE, respectively.
  21262. .ce
  21263. .parag
  21264. .ce
  21265. 2.3.4.4
  21266. .ce
  21267. \fIReject (REJ) command and response\fR 
  21268. .ce
  21269. .parag
  21270. .ce
  21271. The reject (REJ) supervisory frame is used by the DCE or DTE to request 
  21272. transmission of I\ frames starting with the frame numbered N(R). 
  21273. .ce
  21274. I\ frames numbered N(R)\ \(em\ 1 and below are acknowledged. Additional 
  21275. I\ frames 
  21276. .ce
  21277. pending initial transmission may be transmitted following the retransmitted
  21278. .ce
  21279. I\ frame(s).
  21280. .ce
  21281. .parag
  21282. .ce
  21283.  
  21284. .ce
  21285. Only one REJ exception condition for a given direction of information transfer 
  21286. may be established at any time. The REJ exception condition is cleared 
  21287. (reset) upon the receipt of an I\ frame with an N(S) equal to the N(R) 
  21288. of the 
  21289. .ce
  21290. REJ\ frame.
  21291. .ce
  21292. .parag
  21293. .ce
  21294. An REJ frame may be used to indicate the clearance of a busy condition 
  21295. that was reported by the earlier transmission of an RNR frame by that same 
  21296. .ce
  21297. station (DCE or\ DTE). In addition to indicating the DCE or DTE status, the
  21298. .ce
  21299. REJ\ command with the P bit set to\ 1 may be used by the DCE or\ DTE to ask for
  21300. .ce
  21301. the status of the DTE or\ DCE, respectively.
  21302. .ce
  21303. .parag
  21304. .ce
  21305. \fR 
  21306. .ce
  21307. 2.3.4.5
  21308. .ce
  21309. \fISet asynchronous balanced mode (SABM)\fR 
  21310. .ce
  21311. \fIcommand/\fR 
  21312. .ce
  21313. \fISet asynchronous balanced mode extended (SABME)\fR 
  21314. .ce
  21315.  
  21316. .ce
  21317. \fIcommand (subscription time option)\fR 
  21318. .ce
  21319. .parag
  21320. .ce
  21321.  
  21322. .ce
  21323. The SABM unnumbered command is used to place the addressed DCE or DTE in 
  21324. an asynchronous balanced mode (ABM) information transfer phase where all 
  21325. command/response control fields will be one\ octet in length. 
  21326. .ce
  21327. .parag
  21328. .ce
  21329. The SABME unnumbered command is used to place the addressed DCE or DTE 
  21330. in an asynchronous balanced mode\ (ABM) information transfer phase where 
  21331. .ce
  21332. numbered command/response control fields will be two octets in length, and
  21333. .ce
  21334. unnumbered command/response control fields will be one octet in length.
  21335. .ce
  21336. .parag
  21337. .ce
  21338.  
  21339. .ce
  21340. No information field is permitted with the SABM or SABME command. The transmission 
  21341. of a SABM/SABME command indicates the clearance of a busy 
  21342. .ce
  21343. condition that was reported by the earlier trans
  21344. .ce
  21345. mission\ of an RNR\ frame by   that
  21346. .ce
  21347. same station (DCE or\ DTE). The DCE or DTE confirms acceptance of SABM/SABME
  21348. .ce
  21349. [modulo\ 8 (basic) operation/modulo\ 128 (extended) operation] command by the
  21350. .ce
  21351. transmission, at the first opportunity, of a UA\ response. Upon acceptance of
  21352. .ce
  21353. this command, the DCE or DTE send state variable\ V(S) and receive state
  21354. .ce
  21355. variable V(R) are set to\ 0.
  21356. .ce
  21357. .parag
  21358. .ce
  21359. Previously transmitted I\ frames that are unacknowledged when this
  21360. .ce
  21361. command is actioned remain unac
  21362. .ce
  21363. knowledged.\ It is the responsibility of a
  21364. .ce
  21365. higher layer (e.g.\ Packet Layer or MLP) to recover from the possible loss of
  21366. .ce
  21367. the contents (e.g.\ packets) of such I\ frames.
  21368. .ce
  21369. .parag
  21370. .ce
  21371. \fINote\fR 
  21372. .ce
  21373. \ \(em\ The mode of operation of a data link [basic (modulo 8) or
  21374. .ce
  21375. extended (modulo\ 128)] is determined at subscription time and is only 
  21376. changed by going through a new subscription process. 
  21377. .ce
  21378. .parag
  21379. .ce
  21380. 2.3.4.6
  21381. .ce
  21382. \fIDisconnect (DISC)\fR 
  21383. .ce
  21384. \fI command\fR 
  21385. .ce
  21386. .parag
  21387. .ce
  21388. The DISC unnumbered command is used to terminate the mode
  21389. .ce
  21390. previously set. It is used to inform the DCE or DTE receiving the DISC 
  21391. command that the DTE or DCE sending the DISC command is suspending operation. 
  21392. No 
  21393. .ce
  21394. information field is permitted with the DISC command. Prior to actioning the
  21395. .ce
  21396. DISC command, the DCE or DTE receiving the DISC command confirms the acceptance 
  21397. of the DISC command by the transmission of a UA response. The DTE or DCE 
  21398. .ce
  21399. sending the DISC command enters the disconnected phase when it receives the
  21400. .ce
  21401. acknowledging UA response.
  21402. .ce
  21403. .parag
  21404. .ce
  21405. Previously transmitted I frames that are unacknowledged when this
  21406. .ce
  21407. command is actioned remain unacknowledged. It is the responsibility of 
  21408. a higher layer (e.g.\ Packet Layer or MLP) to recover from the possible 
  21409. loss of the 
  21410. .ce
  21411. contents (e.g.,\ packets) of such I frames.
  21412. .ce
  21413. .parag
  21414. .ce
  21415. 2.3.4.7
  21416. .ce
  21417. \fIUnnumbered acknowledgement (UA)\fR 
  21418. .ce
  21419. \fI response\fR 
  21420. .ce
  21421. .parag
  21422. .ce
  21423. The UA unnumbered response is used by the DCE or DTE to acknowledge the 
  21424. receipt and acceptance of the mode\(hysetting commands. Received mode\(hysetting 
  21425. commands are not actioned until the UA response is transmitted. The 
  21426. .ce
  21427. transmission of a UA response indicates the clearance of a busy condition 
  21428. that was reported by the earlier transmission of an RNR frame by that same 
  21429. station (DCE or DTE). No information field is permitted with the UA response. 
  21430. .ce
  21431. .parag
  21432. .ce
  21433.  
  21434. .ce
  21435. 2.3.4.8
  21436. .ce
  21437. \fIDisconnected mode (DM)\fR 
  21438. .ce
  21439. \fI response\fR 
  21440. .ce
  21441. .parag
  21442. .ce
  21443. The DM unnumbered response is used to report a status where the DCE or 
  21444. DTE is logically disconnected from the data link, and is in the disconnected 
  21445. phase. The DM response may be sent to indicate that the DCE or DTE has 
  21446. entered the disconnected phase without benefit of having received a DISC 
  21447. command, or, if sent in response to the reception of a mode setting command, 
  21448. is sent to 
  21449. .ce
  21450. inform the DTE or DCE that the DCE or DTE, respectively, is still in the
  21451. .ce
  21452. disconnected phase and cannot execute the set mode command. No information
  21453. .ce
  21454. field is permitted with the DM response.
  21455. .ce
  21456. .parag
  21457. .ce
  21458. A DCE or DTE in a disconnected phase will monitor received commands
  21459. .ce
  21460. and will react to an SABM/SABME command as outlined in \(sc\ 2.4.4 below, 
  21461. and will respond with a DM response with the F bit set to\ 1 to any other 
  21462. command 
  21463. .ce
  21464. received with the P\ bit set to\ 1.
  21465. .ce
  21466. .parag
  21467. .ce
  21468. 2.3.4.9
  21469. .ce
  21470. \fIFrame reject (FRMR)\fR 
  21471. .ce
  21472. \fI response\fR 
  21473. .ce
  21474. .parag
  21475. .ce
  21476. The FRMR unnumbered response is used by the DCE or DTE to report an error 
  21477. condition not recoverable by retransmission of the identical frame; 
  21478. .ce
  21479. i.e.\ at least one of the following conditions, which results from the 
  21480. receipt of a valid frame: 
  21481. .ce
  21482. .parag
  21483. .ce
  21484. 1)
  21485. .ce
  21486. the receipt of a command or response control field that is
  21487. .ce
  21488. undefined or not implemented;
  21489. .ce
  21490. .parag
  21491. .ce
  21492. 2)
  21493. .ce
  21494. the receipt of an I frame with an information field which
  21495. .ce
  21496. exceeds the maximum established length;
  21497. .ce
  21498. .parag
  21499. .ce
  21500. 3)
  21501. .ce
  21502. the receipt of an invalid N(R); or
  21503. .ce
  21504. .parag
  21505. .ce
  21506. 4)
  21507. .ce
  21508. the receipt of a frame with an information field which is
  21509. .ce
  21510. not permitted or the receipt of a supervisory or unnumbered
  21511. .ce
  21512. frame with incorrect length.
  21513. .ce
  21514. .parag
  21515. .ce
  21516. An undefined or not implemented control field is any of the
  21517. .ce
  21518. control field encodings that are not identified in Tables\ 5/X.25 or\ 6/X.25.
  21519. .ce
  21520. .parag
  21521. .ce
  21522.  
  21523. .ce
  21524. A valid N(R) must be within the range from the lowest send sequence
  21525. .ce
  21526. number N(S) of the still unacknowledged frame(s) to the current DCE send 
  21527. state variable inclusive (or to the current internal variable \fIx\fR 
  21528. .ce
  21529. if the DCE is in
  21530. .ce
  21531. the timer recovery condition as described in \(sc\ 2.4.5.9).
  21532. .ce
  21533. .parag
  21534. .ce
  21535.  
  21536. .ce
  21537. An information field which immediately follows the control field, and consists 
  21538. of\ 3 or 5\ octets [modulo\ 8 (basic) operation or modulo\ 128 (extended) 
  21539. operation, respectively], is returned with this response and provides the 
  21540. .ce
  21541. reason for the FRMR response. These formats are given in Tables\ 7/X.25
  21542. .ce
  21543. and\ 8/X.25.
  21544. .ce
  21545. .parag
  21546. .ce
  21547. 2.3.5
  21548. .ce
  21549. \fIException condition reporting and recovery\fR 
  21550. .ce
  21551. .parag
  21552. .ce
  21553. The error recovery procedures which are available to effect
  21554. .ce
  21555. recovery following the detection/occurrence of an 
  21556. .ce
  21557. exception condition
  21558. .ce
  21559.  at the Data Link Layer are described below. Exception conditions described 
  21560. are those situations which may occur as the result of transmission errors, 
  21561. DCE or DTE malfunction, or operational situations. 
  21562. .ce
  21563. .parag
  21564. .ce
  21565. 2.3.5.1
  21566. .ce
  21567. \fIBusy condition\fR 
  21568. .ce
  21569. .parag
  21570. .ce
  21571. The busy condition results when the DCE or DTE is temporarily
  21572. .ce
  21573. unable to continue to receive I frames due to internal constraints,
  21574. .ce
  21575. e.g.\ receive buffering limitations. In this case an RNR frame is transmitted
  21576. .ce
  21577. from the busy DCE or DTE. I\ frames pending transmission may be transmitted 
  21578. from the busy DCE or DTE prior to or following the RNR\ frame. 
  21579. .ce
  21580. .parag
  21581. .ce
  21582. An indication that the busy condition has cleared is communicated by the 
  21583. transmission of a UA (only in response to a SABM/SABME command), RR, REJ 
  21584. or SABM/SABME (modulo\ 8/modulo\ 128) frame. 
  21585. .ce
  21586. .parag
  21587. .ce
  21588. .line
  21589. .ce
  21590. \fBTable 7/X.25 [T7.25], p.\fR 
  21591. .ce
  21592. .line
  21593. .ce
  21594. \fBTable 8/X.25 [T8.25], p.\fR 
  21595. .ce
  21596. 2.3.5.2
  21597. .ce
  21598. \fIN(S) sequence error condition\fR 
  21599. .ce
  21600. .parag
  21601. .ce
  21602. The information field of all I frames received whose N(S) does not equal 
  21603. the receive state variable V(R) will be discarded. 
  21604. .ce
  21605. .parag
  21606. .ce
  21607. An N(S) sequence error exception condition occurs in the receiver when 
  21608. an I\ frame received contains an N(S) which is not equal to the receive 
  21609. state 
  21610. .ce
  21611. variable V(R) at the receiver. The receiver does not acknowledge (increment 
  21612. its receive state variable) the I\ frame causing the sequence error, or 
  21613. any I\ frame which may follow, until an I\ frame with the correct N(S) 
  21614. is received. 
  21615. .ce
  21616. .parag
  21617. .ce
  21618.  
  21619. .ce
  21620. A DCE or DTE which receives one or more valid I frames having sequence 
  21621. errors or subsequent supervisory frames (RR, RNR and REJ) shall accept 
  21622. the 
  21623. .ce
  21624. control information contained in the N(R) field and the P or F bit to perform 
  21625. data link control functions; e.g.\ to receive acknowledgement of previously 
  21626. .ce
  21627. transmitted I\ frames and to cause the DCE or DTE to respond (P bit set to 1).
  21628. .ce
  21629. .parag
  21630. .ce
  21631.  
  21632. .ce
  21633. The means specified in \(sc\(sc\ 2.3.5.2.1 and 2.3.5.2.2 shall be available 
  21634. for initiating the retransmission of lost or errored I\ frames following 
  21635. the 
  21636. .ce
  21637. occurrence of an N(S) sequence error condition.
  21638. .ce
  21639. .parag
  21640. .ce
  21641. 2.3.5.2.1
  21642. .ce
  21643. \fIREJ recovery\fR 
  21644. .ce
  21645. .parag
  21646. .ce
  21647. The REJ frame is used by a receiving DCE or DTE to initiate a
  21648. .ce
  21649. recovery (retransmission) following the detection of an N(S) sequence error.
  21650. .ce
  21651. .parag
  21652. .ce
  21653.  
  21654. .ce
  21655. With respect to each direction of transmission on the data link, only one 
  21656. \*Qsent REJ\*U exception condition from a DCE or DTE, to a DTE or DCE, 
  21657. is 
  21658. .ce
  21659. established at a time. A \*Qsent REJ\*U exception condition is cleared when the
  21660. .ce
  21661. requested I\ frame is received.
  21662. .ce
  21663. .parag
  21664. .ce
  21665.  
  21666. .ce
  21667. A DCE or DTE receiving a REJ frame initiates sequential
  21668. .ce
  21669. (re\(hy)transmission of I\ frames starting with the I\ frame indicated 
  21670. by the N(R) contained in the REJ frame. The retransmitted frames may contain 
  21671. an N(R) and a P bit that are updated from, and therefore different from, 
  21672. the ones contained in the originally transmitted I\ frames. 
  21673. .ce
  21674. .parag
  21675. .ce
  21676. 2.3.5.2.2
  21677. .ce
  21678. \fITime\(hyout recovery\fR 
  21679. .ce
  21680. .parag
  21681. .ce
  21682. If a DCE or DTE, due to a transmission error, does not receive (or receives 
  21683. and discards) a single I\ frame or the last I\ frame(s) in a sequence of 
  21684. I\ frames, it will not detect an N(S) sequence error condition and, therefore, 
  21685. will not transmit a REJ frame. The DTE or DCE which transmitted the 
  21686. .ce
  21687. unacknowledged I\ frame(s) shall, following the completion of a system 
  21688. specified time\(hyout period (see \(sc\(sc\ 2.4.5.1 and 2.4.5.9 below), 
  21689. take appropriate recovery action to determine at which I\ frame retransmission 
  21690. must begin. The 
  21691. .ce
  21692. retransmitted frame(s) may contain an N(R) and a P bit that is updated from,
  21693. .ce
  21694. and therefore different from, the ones contained in the originally transmitted 
  21695. frame(s). 
  21696. .ce
  21697. .parag
  21698. .ce
  21699. 2.3.5.3
  21700. .ce
  21701. \fIInvalid frame\fR 
  21702. .ce
  21703. \fI condition\fR 
  21704. .ce
  21705. .parag
  21706. .ce
  21707. Any frame which is invalid will be discarded, and no action is
  21708. .ce
  21709. taken as the result of that frame. An invalid frame is defined as one
  21710. .ce
  21711. which:
  21712. .ce
  21713. .parag
  21714. .ce
  21715. a)
  21716. .ce
  21717. is not properly bounded by two flags;
  21718. .ce
  21719. .parag
  21720. .ce
  21721. b)
  21722. .ce
  21723. in basic (modulo 8) operation, contains fewer than 32 bits
  21724. .ce
  21725. between flags; in extended (modulo\ 128) operation, contains
  21726. .ce
  21727. fewer than 40\ bits between flags of frames that contain sequence
  21728. .ce
  21729. numbers or 32\ bits between flags of frames that do not contain
  21730. .ce
  21731. sequence numbers;
  21732. .ce
  21733. .parag
  21734. .ce
  21735. c)
  21736. .ce
  21737. contains a Frame Check Sequence (FCS) error; or
  21738. .ce
  21739. .parag
  21740. .ce
  21741. d)
  21742. .ce
  21743. contains an address other than A or B (for single link
  21744. .ce
  21745. operation) or other than C or D (for multilink operation).
  21746. .ce
  21747. .parag
  21748. .ce
  21749.  
  21750. .ce
  21751. For those networks that are octet aligned, a detection of
  21752. .ce
  21753. non\(hyoctet alignment may be made at the Data Link Layer by adding a frame
  21754. .ce
  21755. validity check that requires the number of bits between the opening flag and
  21756. .ce
  21757. the closing flag, excluding bits inserted for transparency, to be an integral 
  21758. number of octets in length, or the frame is considered invalid. 
  21759. .ce
  21760. .parag
  21761. .ce
  21762. 2.3.5.4
  21763. .ce
  21764. \fIFrame rejection\fR 
  21765. .ce
  21766. \fI condition\fR 
  21767. .ce
  21768. .parag
  21769. .ce
  21770. A frame rejection condition is established upon the receipt of an error\(hyfree 
  21771. frame with one of the conditions listed in \(sc\ 2.3.4.9 above. 
  21772. .ce
  21773. .parag
  21774. .ce
  21775.  
  21776. .ce
  21777. At the DCE or DTE, this frame rejection exception condition is
  21778. .ce
  21779. reported by an FRMR response for appropriate DTE or DCE action, respectively. 
  21780. Once a DCE has established such an exception condition, no additional I\ 
  21781. frames are accepted until the condition is reset by the DTE, except for 
  21782. examination of the P bit. The FRMR response may be repeated at each opportunity, 
  21783. as specified in \(sc\ 2.4.7.3, until recovery is effected by the DTE, or 
  21784. until the DCE initiates its own recovery in case the DTE does not respond. 
  21785. .ce
  21786. .parag
  21787. .ce
  21788. 2.3.5.5
  21789. .ce
  21790. \fIExcessive idle channel state condition on incoming\fR 
  21791. .ce
  21792.  
  21793. .ce
  21794. \fIchannel\fR 
  21795. .ce
  21796. .parag
  21797. .ce
  21798. Upon detection of an idle channel state condition (see \(sc\ 2.2.12.2 above) 
  21799. on the incoming channel, the DCE shall wait for a period\ T3 (see 
  21800. .ce
  21801. \(sc\ 2.4.8.3 below) without taking any specific action, waiting for detection 
  21802. of a return to the active channel state (i.e.,\ detection of at least one 
  21803. flag 
  21804. .ce
  21805. sequence). After the period\ T3, the DCE shall notify the higher layer 
  21806. (e.g.\ the Packet Layer or the MLP) of the excessive idle channel state 
  21807. condition, but 
  21808. .ce
  21809. shall not take any action that would preclude the DTE from establishing the
  21810. .ce
  21811. data link by normal data link set\(hyup procedures.
  21812. .ce
  21813. .parag
  21814. .ce
  21815. \fINote\fR 
  21816. .ce
  21817. \ \(em\ Other actions to be taken by the DCE at the Data Link Layer upon 
  21818. expiration of period\ T3 is a subject for further study. 
  21819. .ce
  21820. .parag
  21821. .ce
  21822.  
  21823. .ce
  21824. 2.4
  21825. .ce
  21826. \fIDescription of the \fR 
  21827. .ce
  21828. \fILAPB procedure\fR 
  21829. .ce
  21830. .parag
  21831. .ce
  21832. 2.4.1
  21833. .ce
  21834. \fILAPB basic and extended modes of operation\fR 
  21835. .ce
  21836. .parag
  21837. .ce
  21838. In accordance with the system choice made by the DTE at
  21839. .ce
  21840. subscription time, the DCE will either support modulo\ 8 (basic) operation or
  21841. .ce
  21842. will support modulo\ 128 (extended) operation. Changing from basic operation 
  21843. to extended operation, or vice versa, in the DCE requires resubscription 
  21844. by the 
  21845. .ce
  21846. DTE for the desired service, and is not supported dynamically.
  21847. .ce
  21848. .parag
  21849. .ce
  21850. Table 5/X.25 indicates the command and response control field formats used 
  21851. with the basic (modulo\ 8) service. The mode\(hysetting command employed 
  21852. to 
  21853. .ce
  21854. initialize (set up) or reset the basic mode is the SABM command. Table 
  21855. 6/X.25 indicates the command and response control field formats used with 
  21856. the extended (modulo\ 128) service. The mode\(hysetting command employed 
  21857. to initialize (set up) or reset the extended mode is the SABME command. 
  21858. .ce
  21859. .parag
  21860. .ce
  21861. 2.4.2
  21862. .ce
  21863. \fILAPB procedure for addressing\fR 
  21864. .ce
  21865. .parag
  21866. .ce
  21867. The address field identifies a frame as either a command or a
  21868. .ce
  21869. response. A command frame contains the address of the DCE or DTE to which 
  21870. the command is being sent. A response frame contains the address of the 
  21871. DCE or DTE sending the frame. 
  21872. .ce
  21873. .parag
  21874. .ce
  21875. In order to allow differentiation between single link operation and
  21876. .ce
  21877. the optional multilink operation for diagnostic and/or maintenance reasons,
  21878. .ce
  21879. different address pair encodings are assigned to data links operating with
  21880. .ce
  21881. multilink procedure compared to data links operating with the single link
  21882. .ce
  21883. procedure.
  21884. .ce
  21885. .parag
  21886. .ce
  21887. Frames containing commands transferred from the DCE to the DTE will
  21888. .ce
  21889. contain the address\ A for the single link operation and address\ C for the
  21890. .ce
  21891. multilink operation.
  21892. .ce
  21893. .parag
  21894. .ce
  21895. Frames containing responses transferred from the DCE to the DTE will contain 
  21896. the address\ B for the single link operation and address\ D for the 
  21897. .ce
  21898. multilink operation.
  21899. .ce
  21900. .parag
  21901. .ce
  21902.  
  21903. .ce
  21904. Frames containing commands transferred from the DTE to the DCE shall contain 
  21905. the address\ B for the single link operation and address\ D for the 
  21906. .ce
  21907. multilink operation.
  21908. .ce
  21909. .parag
  21910. .ce
  21911. Frames containing responses transferred from the DTE to the DCE shall contain 
  21912. the address\ A for the single link operation and address\ C for the 
  21913. .ce
  21914. multilink operation.
  21915. .ce
  21916. .parag
  21917. .ce
  21918. These addresses are coded as follows:
  21919. .ce
  21920. .parag
  21921. .ce
  21922. Address
  21923. .ce
  21924. 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8
  21925. .ce
  21926. .parag
  21927. .ce
  21928. Single link operation
  21929. .ce
  21930. \ \ A
  21931. .ce
  21932. 1\ 1\ 0\ 0\ 0\ 0\ 0\ 0
  21933. .ce
  21934. .line
  21935. .ce
  21936. \ \ B
  21937. .ce
  21938. 1\ 0\ 0\ 0\ 0\ 0\ 0\ 0
  21939. .ce
  21940. .parag
  21941. .ce
  21942. Multilink operation
  21943. .ce
  21944. \ \ C
  21945. .ce
  21946. 1\ 1\ 1\ 1\ 0\ 0\ 0\ 0
  21947. .ce
  21948. .line
  21949. .ce
  21950. \ \ D
  21951. .ce
  21952. 1\ 1\ 1\ 0\ 0\ 0\ 0\ 0
  21953. .ce
  21954. .parag
  21955. .ce
  21956. \fINote\fR 
  21957. .ce
  21958. \ \(em\ The DCE will discard all frames received with an address other 
  21959. than\ A or\ B (single link operation), or\ C or\ D (multilink operation). 
  21960. .ce
  21961. .parag
  21962. .ce
  21963. 2.4.3
  21964. .ce
  21965. \fILAPB procedure for the use of the P/F bit\fR 
  21966. .ce
  21967. .parag
  21968. .ce
  21969. The DCE or DTE receiving an SABM/SABME, DISC, supervisory command or I\ 
  21970. frame with the P\ bit set to\ 1 will set the F\ bit to\ 1 in the next response 
  21971. frame it transmits. 
  21972. .ce
  21973. .parag
  21974. .ce
  21975. The response frame returned by the DCE to an SABM/SABME or DISC
  21976. .ce
  21977. command with the P\ bit set to\ 1 will be a UA or DM response with the 
  21978. F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  21979. with the P\ bit set to\ 1, received during the information transfer phase, 
  21980. will be an RR, REJ, RNR or FRMR response with the F\ bit set to\ 1. The 
  21981. response frame returned by the 
  21982. .ce
  21983. DCE to a supervisory command with the P\ bit set to\ 1, received during the
  21984. .ce
  21985. information transfer phase, will be an RR, REJ, RNR or FRMR response with 
  21986. the F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  21987. or 
  21988. .ce
  21989. supervisory frame with the P\ bit set to\ 1, received during the disconnected
  21990. .ce
  21991. phase, will be a DM response with the F\ bit set to\ 1.
  21992. .ce
  21993. .parag
  21994. .ce
  21995. The P bit may be used by the DCE in conjunction with the timer
  21996. .ce
  21997. recovery condition (see \(sc\ 2.4.5.9 below).
  21998. .ce
  21999. .parag
  22000. .ce
  22001. \fINote\fR 
  22002. .ce
  22003. \ \(em\ Other use of the P bit by the DCE is a subject for further
  22004. .ce
  22005. study.
  22006. .ce
  22007. .parag
  22008. .ce
  22009. 2.4.4
  22010. .ce
  22011. \fILAPB procedure for data link set\(hyup and disconnection\fR 
  22012. .ce
  22013. .parag
  22014. .ce
  22015.  
  22016. .ce
  22017. 2.4.4.1
  22018. .ce
  22019. \fIData link set\(hyup\fR 
  22020. .ce
  22021. .parag
  22022. .ce
  22023. The DCE will indicate that it is able to set up the data link by
  22024. .ce
  22025. transmitting contiguous flags (active channel state).
  22026. .ce
  22027. .parag
  22028. .ce
  22029. Either the DTE or the DCE may initiate data link set\(hyup. Prior to
  22030. .ce
  22031. initiation of data link set\(hyup, either the DCE or the DTE may initiate data
  22032. .ce
  22033. link
  22034. .ce
  22035. disconnection (see \(sc\ 2.4.4.3) for the purpose of insuring that the 
  22036. DCE and the DTE are in the same phase. The DCE may also transmit an unsolicited 
  22037. DM response to request the DTE to initiate data link set\(hyup. 
  22038. .ce
  22039. .parag
  22040. .ce
  22041. The DTE shall initiate data link set\(hyup by transmitting an SABM/SABME 
  22042. command to the DCE. If, upon receipt of the SABM/SABME command correctly, 
  22043. the DCE determines that it can enter the information transfer phase, it 
  22044. will return a UA response to the DTE, will reset its send and receive state 
  22045. variables V(S) and V(R) to zero, and will consider that the data link is 
  22046. set up. If, upon 
  22047. .ce
  22048. receipt
  22049. .ce
  22050. of the SABM/SABME command correctly, the DCE determines that it cannot enter
  22051. .ce
  22052. the information transfer phase, it will return a DM response to the DTE as a
  22053. .ce
  22054. denial to the data link set\(hyup initialization and will consider that the
  22055. .ce
  22056. data link is
  22057. .ce
  22058. \fInot\fR 
  22059. .ce
  22060.  set up. In order to avoid misinterpretation of the DM response received, 
  22061. it is suggested that the DTE always sends its SABM/SABME command with the 
  22062. P\ bit set to\ 1. Otherwise, it is not possible to differentiate a DM response 
  22063. intended as a denial to data link set\(hyup from a DM response that is 
  22064. issued in a separate unsolicited sense as a request for a mode\(hysetting 
  22065. command (as described 
  22066. .ce
  22067. in\ \(sc\ 2.4.4.4.2).
  22068. .ce
  22069. .parag
  22070. .ce
  22071. The DCE will initiate data link set\(hyup by transmitting an SABM/SABME 
  22072. command to the DTE and starting its Timer\ T1 in order to determine when 
  22073. too 
  22074. .ce
  22075. much time has elapsed waiting for a reply (see \(sc\ 2.4.8.1 below). Upon 
  22076. reception of a UA response from the DTE, the DCE will reset its send and 
  22077. receive state 
  22078. .ce
  22079. variables\ V(S) and\ V(R) to zero, will stop its Timer\ T1, and will consider 
  22080. that the data link is set up. Upon reception of a DM response from the 
  22081. DTE as a 
  22082. .ce
  22083. denial
  22084. .ce
  22085. to the data link set\(hyup initialization, the DCE will stop its Timer\ 
  22086. T1 and will consider that the data link is \fInot\fR 
  22087. .ce
  22088. set up.
  22089. .ce
  22090. .parag
  22091. .ce
  22092.  
  22093. .ce
  22094. The DCE, having sent the SABM/SABME command, will ignore and discard any 
  22095. frames except an SABM/SABME or DISC command, or a UA or DM response 
  22096. .ce
  22097. received from the DTE. The receipt of an SABM/SABME or DISC command from the
  22098. .ce
  22099. DTE will result in a collision situation that is resolved per \(sc\ 2.4.4.5 
  22100. below. Frames other than the UA and DM responses sent in response to a 
  22101. received 
  22102. .ce
  22103. SABM/SABME or DISC command will be sent only after the data link is set 
  22104. up and if no outstanding SABM/SABME command exists. 
  22105. .ce
  22106. .parag
  22107. .ce
  22108. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  22109. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  22110. .ce
  22111. resend the SABM/SABME command and will restart Timer\ T1. After transmission 
  22112. of the SABM/SABME command N2 times by the DCE, appropriate higher layer 
  22113. recovery action will be initiated. The value of N2 is defined in \(sc\ 
  22114. 2.4.8.4 below. 
  22115. .ce
  22116. .parag
  22117. .ce
  22118. 2.4.4.2
  22119. .ce
  22120. \fIInformation transfer phase\fR 
  22121. .ce
  22122. .parag
  22123. .ce
  22124. After having transmitted the UA response to the SABM/SABME command or having 
  22125. received the UA response to a transmitted SABM/SABME command, the DCE will 
  22126. accept and transmit I and supervisory frames according to the procedures 
  22127. described in \(sc\ 2.4.5 below. 
  22128. .ce
  22129. .parag
  22130. .ce
  22131.  
  22132. .ce
  22133. When receiving the SABM/SABME command while in the information
  22134. .ce
  22135. transfer phase, the DCE will conform to the data link resetting procedure
  22136. .ce
  22137. described in \(sc\ 2.4.7 below.
  22138. .ce
  22139. .parag
  22140. .ce
  22141. 2.4.4.3
  22142. .ce
  22143. \fIData link disconnection\fR 
  22144. .ce
  22145. .parag
  22146. .ce
  22147. The DTE shall initiate a disconnect of the data link by
  22148. .ce
  22149. transmitting a DISC command to the DCE. On correctly receiving a DISC command 
  22150. in the information transfer phase, the DCE will send a UA response and 
  22151. enter 
  22152. .ce
  22153. the disconnected phase. On correctly receiving a DISC command in the
  22154. .ce
  22155. disconnected phase, the DCE will send a DM response and remain in the
  22156. .ce
  22157. disconnected phase. In order to avoid misinterpretation of the DM response
  22158. .ce
  22159. received, it is suggested that the DTE always sends its DISC command with 
  22160. the P\ bit set to\ 1. Otherwise, it is not possible to differentiate a 
  22161. DM response 
  22162. .ce
  22163. intended as an indication that the DCE is already in the disconnected phase
  22164. .ce
  22165. from a DM response that is issued in a separate unsolicited sense as a 
  22166. request for a mode\(hysetting command (as described in \(sc\ 2.4.4.4.2). 
  22167. .ce
  22168. .parag
  22169. .ce
  22170.  
  22171. .ce
  22172. The DCE will initiate a disconnect of the data link by transmitting a DISC 
  22173. command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 below). 
  22174. Upon reception of an UA response from the DTE, the DCE will stop its Timer\ 
  22175. T1 and 
  22176. .ce
  22177. will enter the disconnected phase. Upon reception of a DM response from 
  22178. the DTE as an indication that the DTE was already in the disconnected phase, 
  22179. the DCE 
  22180. .ce
  22181. will stop its Timer\ T1 and will enter the disconnected phase.
  22182. .ce
  22183. .parag
  22184. .ce
  22185. The DCE, having sent the DISC command, will ignore and discard any
  22186. .ce
  22187. frames except an SABM/SABME or DISC command, or a UA or DM response received
  22188. .ce
  22189. from the DTE. The receipt of an SABM/SABME or DISC command from the DTE will
  22190. .ce
  22191. result in a collision situation that is resolved per \(sc\ 2.4.4.5 below.
  22192. .ce
  22193. .parag
  22194. .ce
  22195.  
  22196. .ce
  22197. After the DCE sends the DISC command, if a UA or DM response is not
  22198. .ce
  22199. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  22200. resend the DISC command and will restart Timer\ T1. After transmission 
  22201. of the DISC 
  22202. .ce
  22203. command N2 times by the DCE, appropriate higher layer recovery action will 
  22204. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  22205. .ce
  22206. .parag
  22207. .ce
  22208. 2.4.4.4
  22209. .ce
  22210. \fIDisconnected phase\fR 
  22211. .ce
  22212. .parag
  22213. .ce
  22214. 2.4.4.4.1
  22215. .ce
  22216. After having received a DISC command from the DTE and
  22217. .ce
  22218. returned a UA response to the DTE, or having received the UA response to a
  22219. .ce
  22220. transmitted DISC command, the DCE will enter the disconnected phase.
  22221. .ce
  22222. .parag
  22223. .ce
  22224. In the disconnected phase, the DCE may initiate data link set\(hyup. In 
  22225. the disconnected phase, the DCE will react to the receipt of an SABM/SABME 
  22226. command as described in \(sc\ 2.4.4.1 above and will transmit a DM response 
  22227. in 
  22228. .ce
  22229. answer to a received DISC command. When receiving any other command (defined, 
  22230. or undefined or not implemented) with the P\ bit set to\ 1, the DCE will 
  22231. transmit a DM response with the F\ bit set to\ 1. Other frames received 
  22232. in the 
  22233. .ce
  22234. disconnected phase will be ignored by the DCE.
  22235. .ce
  22236. .parag
  22237. .ce
  22238. 2.4.4.4.2
  22239. .ce
  22240. When the DCE enters the disconnected phase after
  22241. .ce
  22242. detecting error conditions as listed in \(sc\ 2.4.6 below, or after an internal
  22243. .ce
  22244. malfunction, it may indicate this by sending a DM response rather than 
  22245. a DISC command. In these cases, the DCE will transmit a DM response and 
  22246. start its 
  22247. .ce
  22248. Timer\ T1 (see \(sc\ 2.4.8.1 below).
  22249. .ce
  22250. .parag
  22251. .ce
  22252. If Timer T1 runs out before the reception of an SABM/SABME or DISC command 
  22253. from the DTE, the DCE will retransmit the DM response and restart 
  22254. .ce
  22255. Timer\ T1. After transmission of the DM response N2 times, the DCE will 
  22256. remain in the disconnected phase and appropriate recovery actions will 
  22257. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  22258. .ce
  22259. .parag
  22260. .ce
  22261. Alternatively, after an internal malfunction, the DCE may either
  22262. .ce
  22263. initiate a data link resetting procedure (see \(sc\ 2.4.7 below) or disconnect 
  22264. the data link (see \(sc\ 2.4.4.3 above) prior to initiating a data link 
  22265. set\(hyup 
  22266. .ce
  22267. procedure (see \(sc\ 2.4.4.1 above).
  22268. .ce
  22269. .parag
  22270. .ce
  22271. 2.4.4.5
  22272. .ce
  22273. \fICollision of unnumbered commands\fR 
  22274. .ce
  22275. .parag
  22276. .ce
  22277. Collision situations shall be resolved in the following way:
  22278. .ce
  22279. .parag
  22280. .ce
  22281. 2.4.4.5.1
  22282. .ce
  22283. If the sent and received unnumbered commands are the
  22284. .ce
  22285. same, the DCE and the DTE shall each send the UA response at the earliest
  22286. .ce
  22287. possible opportunity. The DCE shall enter the indicated phase either,
  22288. .ce
  22289. .parag
  22290. .ce
  22291.  
  22292. .ce
  22293. 1)
  22294. .ce
  22295. after receiving the UA response,
  22296. .ce
  22297. .parag
  22298. .ce
  22299. 2)
  22300. .ce
  22301. after sending the UA response, or
  22302. .ce
  22303. .parag
  22304. .ce
  22305. 3)
  22306. .ce
  22307. after timing out waiting for the UA response having sent a
  22308. .ce
  22309. UA response.
  22310. .ce
  22311. .parag
  22312. .ce
  22313. In the case of 2) above, the DCE will accept a subsequent UA
  22314. .ce
  22315. response to the mode\(hysetting command it issued without causing an exception
  22316. .ce
  22317. condition if received within the time\(hyout interval.
  22318. .ce
  22319. .parag
  22320. .ce
  22321.  
  22322. .ce
  22323. 2.4.4.5.2
  22324. .ce
  22325. If the sent and received unnumbered commands are
  22326. .ce
  22327. different, the DCE and the DTE shall each enter the disconnected phase and
  22328. .ce
  22329. issue a DM response at the earliest possible opportunity.
  22330. .ce
  22331. .parag
  22332. .ce
  22333. 2.4.4.6
  22334. .ce
  22335. \fICollision of DM response with SABM/SABME or DISC\fR 
  22336. .ce
  22337.  
  22338. .ce
  22339. \fIcommand\fR 
  22340. .ce
  22341. .parag
  22342. .ce
  22343. When a DM response is issued by the DCE or DTE as an unsolicited
  22344. .ce
  22345. response to request the DTE or DCE, respectively, to issue a mode\(hysetting
  22346. .ce
  22347. command as described in \(sc\ 2.4.4.4, a collision between an SABM/SABME 
  22348. or DISC 
  22349. .ce
  22350. command and the unsolicited DM response may occur. In order to avoid
  22351. .ce
  22352. misinterpretation of the DM response received, the DTE always sends its
  22353. .ce
  22354. SABM/SABME or DISC command with the P\ bit set to\ 1.
  22355. .ce
  22356. .parag
  22357. .ce
  22358. 2.4.4.7
  22359. .ce
  22360. \fICollision of DM responses\fR 
  22361. .ce
  22362. .parag
  22363. .ce
  22364. A contention situation may occur when both the DCE and the DTE
  22365. .ce
  22366. issue a DM response to request a mode\(hysetting command. In this case, the DTE
  22367. .ce
  22368. will issue an SABM/SABME command to resolve the contention situation.
  22369. .ce
  22370. .parag
  22371. .ce
  22372.  
  22373. .ce
  22374. 2.4.5
  22375. .ce
  22376. \fILAPB procedures for information transfer\fR 
  22377. .ce
  22378. .parag
  22379. .ce
  22380. The procedures which apply to the transmission of I\ frames in each direction 
  22381. during the information transfer phase are described below. 
  22382. .ce
  22383. .parag
  22384. .ce
  22385. In the following, \*Qnumber one higher\*U is in reference to a
  22386. .ce
  22387. continuously repeated sequence series, i.e., 7 is 1\ higher than 6 and 0 is
  22388. .ce
  22389. 1\ higher than 7 for modulo\ 8 series, and 127 is 1\ higher than 126 and 0 is
  22390. .ce
  22391. 1\ higher than 127 for modulo\ 128 series.
  22392. .ce
  22393. .parag
  22394. .ce
  22395. 2.4.5.1
  22396. .ce
  22397. \fISending I frames\fR 
  22398. .ce
  22399. .parag
  22400. .ce
  22401. When the DCE has an I frame to transmit (i.e. an I frame not
  22402. .ce
  22403. already transmitted, or having to be retransmitted as described in \(sc\ 
  22404. 2.4.5.6 
  22405. .ce
  22406. below), it will transmit it with an N(S) equal to its current send state
  22407. .ce
  22408. variable V(S), and an N(R) equal to its current receive state variable 
  22409. V(R). At the end of the transmission of the I\ frame, the DCE will increment 
  22410. its send 
  22411. .ce
  22412. state variable V(S) by\ 1.
  22413. .ce
  22414. .parag
  22415. .ce
  22416. If Timer T1 is not running at the time of transmission of an I frame, it 
  22417. will be started. 
  22418. .ce
  22419. .parag
  22420. .ce
  22421. If the send state variable V(S) is equal to the last value of N(R)
  22422. .ce
  22423. received plus \fIk\fR 
  22424. .ce
  22425. (where \fIk\fR 
  22426. .ce
  22427. is the maximum number of outstanding I\ frames \(em
  22428. .ce
  22429. see \(sc\ 2.4.8.6 below), the DCE will not transmit any new I\ frames, but may
  22430. .ce
  22431. retransmit an I\ frame as described in \(sc\(sc\ 2.4.5.6 or 2.4.5.9 below.
  22432. .ce
  22433. .parag
  22434. .ce
  22435. When the DCE is in the busy condition, it may still transmit I frames, 
  22436. provided that the DTE is not busy. When the DCE is in the frame rejection 
  22437. .ce
  22438. condition, it will stop transmitting I\ frames.
  22439. .ce
  22440. .parag
  22441. .ce
  22442. 2.4.5.2
  22443. .ce
  22444. \fIReceiving an I frame\fR 
  22445. .ce
  22446. .parag
  22447. .ce
  22448. 2.4.5.2.1
  22449. .ce
  22450. When the DCE is not in a busy condition and receives a valid I\ frame whose 
  22451. send sequence number N(S) is equal to the DCE receive state 
  22452. .ce
  22453. variable V(R), the DCE will accept the information field of this frame,
  22454. .ce
  22455. increment by one its receive state variable V(R), and act as follows:
  22456. .ce
  22457. .parag
  22458. .ce
  22459.  
  22460. .ce
  22461. a)
  22462. .ce
  22463. If the DCE is still not in a busy condition:
  22464. .ce
  22465. .parag
  22466. .ce
  22467. i)
  22468. .ce
  22469. If an I frame is available for transmission by the
  22470. .ce
  22471. DCE, it may act as in \(sc\ 2.4.5.1 above and acknowledge
  22472. .ce
  22473. the received I frame by setting N(R) in the control field
  22474. .ce
  22475. of the next transmitted I\ frame to the value of the DCE
  22476. .ce
  22477. receive state variable V(R). Alternatively, the DCE may
  22478. .ce
  22479. acknowledge the received I\ frame by transmitting an RR
  22480. .ce
  22481. frame with the N(R) equal to the value of the DCE receive
  22482. .ce
  22483. state variable V(R).
  22484. .ce
  22485. .parag
  22486. .ce
  22487. ii)
  22488. .ce
  22489. If no I frame is available for transmission by the
  22490. .ce
  22491. DCE, it will transmit an RR frame with N(R) equal to the
  22492. .ce
  22493. value of the DCE receive state variable V(R).
  22494. .ce
  22495. .parag
  22496. .ce
  22497.  
  22498. .ce
  22499. b)
  22500. .ce
  22501. If the DCE is now in a busy condition, it will transmit an
  22502. .ce
  22503. RNR frame with N(R) equal to the value of the DCE receive
  22504. .ce
  22505. state variable V(R) (see \(sc\ 2.4.5.8).
  22506. .ce
  22507. .parag
  22508. .ce
  22509.  
  22510. .ce
  22511. 2.4.5.2.2
  22512. .ce
  22513. When the DCE is in a busy condition, it may ignore the
  22514. .ce
  22515. information field contained in any received I\ frame.
  22516. .ce
  22517. .parag
  22518. .ce
  22519. 2.4.5.3
  22520. .ce
  22521. \fIReception of invalid frames\fR 
  22522. .ce
  22523. .parag
  22524. .ce
  22525. When the DCE receives an invalid frame (see \(sc\ 2.3.5.3), this frame 
  22526. will be discarded. 
  22527. .ce
  22528. .parag
  22529. .ce
  22530. 2.4.5.4
  22531. .ce
  22532. \fIReception of out\(hyof\(hysequence I frames\fR 
  22533. .ce
  22534. .parag
  22535. .ce
  22536. When the DCE receives a valid I frame whose send sequence number
  22537. .ce
  22538. N(S) is incorrect, i.e.,\ not equal to the current DCE receive state variable
  22539. .ce
  22540. V(R), it will discard the information field of the I\ frame and transmit 
  22541. an REJ frame with the N(R) set to one higher than the N(S) of the last 
  22542. correctly 
  22543. .ce
  22544. received I\ frame. The REJ frame will be a command frame with the P\ bit 
  22545. set to\ 1 if an acknowledged transfer of the retransmission request is 
  22546. required; 
  22547. .ce
  22548. otherwise the REJ frame may be either a command or a response frame. The DCE
  22549. .ce
  22550. will then discard the information field of all I\ frames received until the
  22551. .ce
  22552. expected I\ frame is correctly received. When receiving the expected I\ frame,
  22553. .ce
  22554. the DCE will then acknowledge the I\ frame as described in \(sc\ 2.4.5.2 
  22555. above. The DCE will use the N(R) and P\ bit information in the discarded 
  22556. I\ frames as 
  22557. .ce
  22558. described in \(sc\ 2.3.5.2 above.
  22559. .ce
  22560. .parag
  22561. .ce
  22562. 2.4.5.5
  22563. .ce
  22564. \fIReceiving acknowledgement\fR 
  22565. .ce
  22566. .parag
  22567. .ce
  22568. When correctly receiving an I frame or a supervisory frame (RR, RNR or 
  22569. REJ), even in the busy condition, the DCE will consider the N(R) contained 
  22570. in this frame as an acknowledgement for all I\ frames it has transmitted 
  22571. with an N(S) up to and including the received N(R)\(em1. The DCE will stop 
  22572. Timer\ T1 when it correctly receives an I\ frame or a supervisory frame 
  22573. with the N(R) higher 
  22574. .ce
  22575. than the last received N(R) (actually acknowledging some I\ frames), or 
  22576. an REJ frame with an N(R) equal to the last received N(R). 
  22577. .ce
  22578. .parag
  22579. .ce
  22580.  
  22581. .ce
  22582. If Timer T1 has been stopped by the receipt on an I, RR or RNR frame, and 
  22583. if there are outstanding I\ frames still unacknowledged, the DCE will 
  22584. .ce
  22585. restart Timer\ T1. If Timer\ T1 then runs out, the DCE will follow the 
  22586. recovery procedure (\(sc\ 2.4.5.9 below) with respect to the unacknowledged 
  22587. I\ frames. If 
  22588. .ce
  22589. Timer\ T1 has been stopped by the receipt of an REJ frame, the DCE will 
  22590. follow the retransmission procedures in \(sc\ 2.4.5.6 below. 
  22591. .ce
  22592. .parag
  22593. .ce
  22594. 2.4.5.6
  22595. .ce
  22596. \fIReceiving an REJ frame\fR 
  22597. .ce
  22598. .parag
  22599. .ce
  22600. When receiving an REJ frame, the DCE will set its send state
  22601. .ce
  22602. variable V(S) to the N(R) received in the REJ control field. It will transmit 
  22603. the corresponding I\ frame as soon as it is available or retransmit it 
  22604. in 
  22605. .ce
  22606. accordance with the procedures described in \(sc\ 2.4.5.1 above. (Re)transmission 
  22607. will conform to the following procedure: 
  22608. .ce
  22609. .parag
  22610. .ce
  22611. i)
  22612. .ce
  22613. if the DCE is transmitting a supervisory command or response
  22614. .ce
  22615. when it receives the REJ frame, it will complete that
  22616. .ce
  22617. transmission before commencing transmission of the requested
  22618. .ce
  22619. I\ frame;
  22620. .ce
  22621. .parag
  22622. .ce
  22623.  
  22624. .ce
  22625. ii)
  22626. .ce
  22627. if the DCE is transmitting an unnumbered command or
  22628. .ce
  22629. response when it receives the REJ frame, it will ignore the
  22630. .ce
  22631. request for retransmission;
  22632. .ce
  22633. .parag
  22634. .ce
  22635. iii)
  22636. .ce
  22637. if the DCE is transmitting an I frame when the REJ frame
  22638. .ce
  22639. is received, it may abort the I\ frame and commence transmission
  22640. .ce
  22641. of the requested I\ frame immediately after abortion;
  22642. .ce
  22643. .parag
  22644. .ce
  22645. iv)
  22646. .ce
  22647. if the DCE is not transmitting any frame when the REJ frame
  22648. .ce
  22649. is received, it will commence transmission of the requested
  22650. .ce
  22651. I\ frame immediately.
  22652. .ce
  22653. .parag
  22654. .ce
  22655. In all cases, if other unacknowledged I frames had already been
  22656. .ce
  22657. transmitted following the one indicated in the REJ frame, then those I 
  22658. frames will be retransmitted by the DCE following the retransmission of 
  22659. the requested I\ frame. Other I\ frames not yet transmitted may be transmitted 
  22660. following the 
  22661. .ce
  22662. retransmitted I\ frames.
  22663. .ce
  22664. .parag
  22665. .ce
  22666. If the REJ frame was received from the DTE as a command with the P bit 
  22667. set to\ 1, the DCE will transmit an RR, RNR or REJ response with the F 
  22668. bit set to\ 1 before transmitting or retransmitting the corresponding I\ 
  22669. frame. 
  22670. .ce
  22671. .parag
  22672. .ce
  22673. 2.4.5.7
  22674. .ce
  22675. \fIReceiving an RNR frame\fR 
  22676. .ce
  22677. .parag
  22678. .ce
  22679. After receiving an RNR frame whose N(R) acknowledges all frames
  22680. .ce
  22681. previously transmitted, the DCE will stop Timer\ T1 and may then transmit
  22682. .ce
  22683. an I\ frame, with the P\ bit set to\ 0, whose send sequence number is
  22684. .ce
  22685. equal to the N(R) indicated in the RNR frame, restarting Timer\ T1 as it 
  22686. does. After receiving an RNR frame whose N(R) indicates a previously transmitted 
  22687. .ce
  22688. frame, the DCE will not transmit or retransmit any I\ frame, Timer\ T1 being
  22689. .ce
  22690. already running. In either case, if the Timer\ T1 runs out before receipt 
  22691. of a busy clearance indication, the DCE will follow the procedure described 
  22692. in 
  22693. .ce
  22694. \(sc\ 2.4.5.9\ below. In any case, the DCE will not transmit any other 
  22695. I\ frames 
  22696. .ce
  22697. before receiving an RR or REJ frame, or before the completion of a link
  22698. .ce
  22699. resetting procedure.
  22700. .ce
  22701. .parag
  22702. .ce
  22703. Alternatively, after receiving an RNR frame, the DCE may wait for a
  22704. .ce
  22705. period of time (e.g.,\ the length of the Timer\ T1) and then transmit a
  22706. .ce
  22707. supervisory command frame (RR, RNR or REJ) with the P\ bit set to\ 1, and 
  22708. start Timer\ T1, in order to determine if there is any change in the receive 
  22709. status of the DTE. The DTE shall respond to the P\ bit set to\ 1 with a 
  22710. supervisory 
  22711. .ce
  22712. response frame (RR, RNR or REJ) with the F\ bit set to\ 1 indicating either
  22713. .ce
  22714. continuance of the busy condition (RNR) or clearance of the busy condition 
  22715. (RR or REJ). Upon receipt of the DTE response, Timer\ T1 is stopped. 
  22716. .ce
  22717. .parag
  22718. .ce
  22719.  
  22720. .ce
  22721. 1)
  22722. .ce
  22723. If the response is the RR or REJ response, the busy
  22724. .ce
  22725. condition is cleared and the DCE may transmit I\ frames beginning
  22726. .ce
  22727. with the I\ frame identified by the N(R) in the received response
  22728. .ce
  22729. frame.
  22730. .ce
  22731. .parag
  22732. .ce
  22733. 2)
  22734. .ce
  22735. If the response is the RNR response, the busy condition
  22736. .ce
  22737. still exists, and the DCE will after a period of time (e.g.\ the
  22738. .ce
  22739. length of Timer\ T1) repeat the enquiry of the DTE receive
  22740. .ce
  22741. status.
  22742. .ce
  22743. .parag
  22744. .ce
  22745. If Timer T1 runs out before a status response is received, the
  22746. .ce
  22747. enquiry process above is repeated. If N2 attempts to get a status response 
  22748. fail (i.e.\ Timer\ T1 runs out N2\ times), the DCE will initiate a data 
  22749. link resetting procedure as described in \(sc\ 2.4.7.2\ below or will transmit 
  22750. a DM response to ask the DTE to initiate a data link set\(hyup procedure 
  22751. as described in \(sc\ 2.4.4.1 and enter the disconnected phase. The value 
  22752. of N2 is defined in \(sc\ 2.4.8.4\ below. 
  22753. .ce
  22754. .parag
  22755. .ce
  22756.  
  22757. .ce
  22758. If, at any time during the enquiry process, an unsolicited RR or REJ frame 
  22759. is received from the DTE, it will be considered to be an indication of 
  22760. .ce
  22761. clearance of the busy condition. Should the unsolicited RR or REJ frame be a
  22762. .ce
  22763. command frame with the P bit set to\ 1, the appropriate response frame 
  22764. with the F\ bit set to 1 must be transmitted before the DCE may resume 
  22765. transmission of 
  22766. .ce
  22767. I\ frames. If Timer\ T1 is running, the DCE will wait for the non\(hybusy 
  22768. response with the F bit set to\ 1 or will wait for Timer\ T1 to run out 
  22769. and then either 
  22770. .ce
  22771. may reinitiate the enquiry process in order to realize a successful P/F bit
  22772. .ce
  22773. exchange or may resume transmission of I frames beginning with the I\ frame
  22774. .ce
  22775. identified by the N(R) in the received RR or REJ frame.
  22776. .ce
  22777. .parag
  22778. .ce
  22779. 2.4.5.8
  22780. .ce
  22781. \fIDCE busy condition\fR 
  22782. .ce
  22783. .parag
  22784. .ce
  22785. When the DCE enters a busy condition, it will transmit an RNR frame at 
  22786. the earliest opportunity. The RNR frame will be a command frame with the 
  22787. P bit set to\ 1 if an acknowledged transfer of the busy condition indication 
  22788. is 
  22789. .ce
  22790. required; otherwise the RNR frame may be either a command or a response 
  22791. frame. While in the busy condition, the DCE will accept and process supervisory 
  22792. .ce
  22793. frames, will accept and process the contents of the N(R) fields of I\ frames,
  22794. .ce
  22795. and will return an RNR response with the F bit set to\ 1 if it receives a
  22796. .ce
  22797. supervisory command or I command frame with the P bit set to\ 1. To clear the
  22798. .ce
  22799. busy condition, the DCE will transmit either an REJ frame or an RR frame, with
  22800. .ce
  22801. N(R) set to the current receive state variable V(R), depending on whether or
  22802. .ce
  22803. not it discarded information fields of correctly received I\ frames. The REJ
  22804. .ce
  22805. frame or the RR frame will be a command frame with the P bit set to\ 1 if an
  22806. .ce
  22807. acknowledged transfer of the busy\(hyto\(hynon\(hybusy transition is required, 
  22808. otherwise the REJ frame or the RR frame may be either a command or a response 
  22809. frame. 
  22810. .ce
  22811. .parag
  22812. .ce
  22813.  
  22814. .ce
  22815. 2.4.5.9
  22816. .ce
  22817. \fIWaiting acknowledgement\fR 
  22818. .ce
  22819. .parag
  22820. .ce
  22821. The DCE maintains an internal transmission attempt variable which is set 
  22822. to\ 0 when the DCE sends a UA response, when the DCE receives a UA 
  22823. .ce
  22824. response or an RNR command or response, or when the DCE correctly receives 
  22825. an I\ frame or supervisory frame with the N(R) higher than the last received 
  22826. N(R) (actually acknowledging some outstanding I\ frames). 
  22827. .ce
  22828. .parag
  22829. .ce
  22830. If Timer T1 runs out waiting for the acknowledgement from the DTE for an 
  22831. I\ frame transmitted, the DCE will enter the timer recovery condition, 
  22832. add 
  22833. .ce
  22834. one to its transmission attempt variable and set an internal variable \fIx\fR 
  22835. .ce
  22836. to
  22837. .ce
  22838. the current value of its send state variable V(S). The DCE will then restart
  22839. .ce
  22840. Timer T1, set its send state variable V(S) to the last value of N(R) received 
  22841. from the DTE and retransmit the corresponding I\ frame with the P bit set 
  22842. to\ 1, or transmit an appropriate supervisory command frame (RR, RNR or 
  22843. REJ) with the P\ bit set to\ 1. 
  22844. .ce
  22845. .parag
  22846. .ce
  22847.  
  22848. .ce
  22849. The timer recovery condition is cleared when the DCE receives a valid supervisory 
  22850. frame with the F\ bit\ set to\ 1. 
  22851. .ce
  22852. .parag
  22853. .ce
  22854. If, while in the timer recovery condition, the DCE correctly receives a 
  22855. supervisory frame with the F bit set to\ 1 and with the N(R) within the 
  22856. range from its current send state variable V(S) to \fIx\fR 
  22857. .ce
  22858. included, it will clear the
  22859. .ce
  22860. timer recovery condition (including stopping Timer\ T1) and set its send 
  22861. state variable V(S) to the value of the received N(R), and may then resume 
  22862. with 
  22863. .ce
  22864. I\ frame transmission or retransmission, as appropriate.
  22865. .ce
  22866. .parag
  22867. .ce
  22868. If, while in the timer recovery condition, the DCE correctly receives an 
  22869. I or supervisory frame with the P/F bit set to\ 0 and with a valid N(R) 
  22870. (see \(sc\ 2.3.4.9), it will not clear the timer recovery condition. The 
  22871. value of the 
  22872. .ce
  22873. received N(R) may be used to update the send state variable V(S). However, 
  22874. the DCE may decide to keep the last transmitted I\ frame in store (even 
  22875. if it is 
  22876. .ce
  22877. acknowledged) in order to be able to retransmit it with the P bit set to\ 
  22878. 1 when Timer\ T1 runs out at a later time. 
  22879. .ce
  22880. .parag
  22881. .ce
  22882.  
  22883. .ce
  22884. If the received supervisory frame with the P/F bit set to\ 0 is an REJ 
  22885. frame with a valid N(R), the DCE may either immediately initiate 
  22886. .ce
  22887. (re)transmission from the value of the send state variable V(S), or it may
  22888. .ce
  22889. ignore the request for retransmission and wait until the supervisory frame 
  22890. with the F bit set to\ 1 is received before initiating (re)transmission 
  22891. of frames 
  22892. .ce
  22893. from the value identified in the N(R) field of the supervisory frame with 
  22894. the F\ bit set to\ 1. In the case of immediate retransmission, in order 
  22895. to prevent 
  22896. .ce
  22897. duplicate retransmissions following the clearance of the timer recovery
  22898. .ce
  22899. condition, the DCE shall inhibit retransmission of a specific I\ frame [same
  22900. .ce
  22901. N(R) in the same numbering cycle] if the DCE has retransmitted that I\ 
  22902. frame as the result of a received REJ frame with the P/F bit set to\ 0. 
  22903. .ce
  22904. .parag
  22905. .ce
  22906. If, while in the timer recovery condition, the DCE receives a REJ
  22907. .ce
  22908. command with the P bit set to\ 1, the DCE will respond immediately with an
  22909. .ce
  22910. appropriate supervisory response with the F bit set to\ 1. The DCE may 
  22911. then use the value of the N(R) in the REJ command to update the send state 
  22912. variable 
  22913. .ce
  22914. V(S), and may either immediately begin (re)transmission from the value N(R)
  22915. .ce
  22916. indicated in the REJ frame or ignore the request for retransmission and wait
  22917. .ce
  22918. until the supervisory frame with the F bit set to\ 1 is received before
  22919. .ce
  22920. initiating (re)transmission of I\ frames from the value identified in the 
  22921. N(R) field of the supervisory frame with the F\ bit set to\ 1. In the case 
  22922. of 
  22923. .ce
  22924. immediate retransmission, in order to prevent duplicate retransmissions
  22925. .ce
  22926. following the clearance of the timer recovery condition, the DCE shall 
  22927. inhibit retransmission of a specific I\ frame [same N(R) in the same numbering 
  22928. cycle] 
  22929. .ce
  22930. if the DCE has retransmitted that I\ frame as the result of the received REJ
  22931. .ce
  22932. command with the P\ bit set to\ 1.
  22933. .ce
  22934. .parag
  22935. .ce
  22936. If Timer T1 runs out in the timer recovery condition, and no I or
  22937. .ce
  22938. supervisory frame with the P/F bit set to 0 and with a valid N(R) has been
  22939. .ce
  22940. received, or no REJ command with the P bit set to\ 1 and with a valid N(R) 
  22941. has been received, the DCE will add one to its transmission attempt variable, 
  22942. .ce
  22943. restart Timer\ T1, and either retransmit the I frame sent with the P bit set
  22944. .ce
  22945. to\ 1 or transmit an appropriate supervisory command with the P bit set to\ 1.
  22946. .ce
  22947. .parag
  22948. .ce
  22949.  
  22950. .ce
  22951. If the transmission attempt variable is equal to N2, the DCE will
  22952. .ce
  22953. initiate a data link resetting procedure as described in \(sc\ 2.4.7.2 
  22954. below, or 
  22955. .ce
  22956. will transmit a DM response to ask the DTE to initiate a data link set\(hyup
  22957. .ce
  22958. procedure as described in \(sc\ 2.4.4.1 above and enter the disconnected 
  22959. phase. N2 is a system parameter (see \(sc\ 2.4.8.4 below). 
  22960. .ce
  22961. .parag
  22962. .ce
  22963. \fINote\fR 
  22964. .ce
  22965. \ \(em\ Although the DCE may implement the internal variable \fIx\fR 
  22966. .ce
  22967. ,
  22968. .ce
  22969. other mechanisms do exist that achieve the identical function.
  22970. .ce
  22971. .parag
  22972. .ce
  22973. 2.4.6
  22974. .ce
  22975. \fILAPB conditions for \fR 
  22976. .ce
  22977. \fIdata link resetting or data link\fR 
  22978. .ce
  22979.  
  22980. .ce
  22981. \fIre\(hyinitialization\fR 
  22982. .ce
  22983. \fI(data link set\(hyup)\fR 
  22984. .ce
  22985. .parag
  22986. .ce
  22987. 2.4.6.1
  22988. .ce
  22989. When the DCE receives, during the information transfer phase, a
  22990. .ce
  22991. frame which is not invalid (see \(sc\ 2.3.5.3) with one of the conditions 
  22992. listed in \(sc\ 2.3.4.9 above, the DCE will request the DTE to initiate 
  22993. a data link resetting procedure by transmitting an FRMR response to the 
  22994. DTE as described in 
  22995. .ce
  22996. \(sc\ 2.4.7.3.
  22997. .ce
  22998. .parag
  22999. .ce
  23000. 2.4.6.2
  23001. .ce
  23002. When the DCE receives, during the information transfer phase, an FRMR response 
  23003. from the DTE, the DCE will either initiate the data link 
  23004. .ce
  23005. resetting procedures itself as described in \(sc\ 2.4.7.2 or return a DM 
  23006. response to ask the DTE to initiate the data link set\(hyup (initialization) 
  23007. procedure as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  23008. the DCE will enter 
  23009. .ce
  23010. the disconnected phase as described in \(sc\ 2.4.4.4.2.
  23011. .ce
  23012. .parag
  23013. .ce
  23014. 2.4.6.3
  23015. .ce
  23016. When the DCE receives, during the information transfer phase, a UA response, 
  23017. or an unsolicited response with the F bit set to\ 1, the DCE may 
  23018. .ce
  23019. either initiate the data link resetting procedures itself as described in
  23020. .ce
  23021. \(sc\ 2.4.7.2, or return a DM response to ask the DTE to initiate the data link
  23022. .ce
  23023. set\(hyup (initialization) procedure as described in \(sc\ 2.4.4.1. After 
  23024. transmitting a DM response, the DCE will enter the disconnected phase as 
  23025. described in 
  23026. .ce
  23027. \(sc\ 2.4.4.4.2.
  23028. .ce
  23029. .parag
  23030. .ce
  23031. 2.4.6.4
  23032. .ce
  23033. When the DCE receives, during the information transfer phase, a DM response 
  23034. from the DTE, the DCE will either initiate the data link set\(hyup 
  23035. .ce
  23036. (initialization) procedures itself as described in \(sc\ 2.4.4.1, or return 
  23037. a DM 
  23038. .ce
  23039. response to ask the DTE to initiate the data link set\(hyup (initialization)
  23040. .ce
  23041. procedures as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  23042. the DCE will enter the disconnected phase as described in \(sc\ 2.4.4.4.2. 
  23043. .ce
  23044. .parag
  23045. .ce
  23046.  
  23047. .ce
  23048. 2.4.7
  23049. .ce
  23050. \fILAPB procedure for data link resetting\fR 
  23051. .ce
  23052. .parag
  23053. .ce
  23054. 2.4.7.1
  23055. .ce
  23056. The data link resetting procedure is used to initialize both
  23057. .ce
  23058. directions of information transfer according to the procedure described 
  23059. below. The data link resetting procedure only applies during the information 
  23060. transfer phase. 
  23061. .ce
  23062. .parag
  23063. .ce
  23064. 2.4.7.2
  23065. .ce
  23066. Either the DTE or the DCE may initiate the data link resetting
  23067. .ce
  23068. procedure. The data link resetting procedure indicates a clearance of a DCE
  23069. .ce
  23070. and/or DTE busy condition, if present.
  23071. .ce
  23072. .parag
  23073. .ce
  23074. The DTE shall initiate a data link resetting by transmitting an
  23075. .ce
  23076. SABM/SABME command to the DCE. If, upon correct receipt of the SABM/SABME
  23077. .ce
  23078. command, the DCE determines that it can continue in the information transfer
  23079. .ce
  23080. phase, it will return a UA response to the DTE, will reset its send and 
  23081. receive state variables V(S) and V(R) to zero, and will remain in the information 
  23082. .ce
  23083. transfer phase. If, upon correct receipt of the SABM/SABME command, the DCE
  23084. .ce
  23085. determines that it cannot remain in the information transfer phase, it will
  23086. .ce
  23087. return a DM response as a denial to the resetting request and will enter the
  23088. .ce
  23089. disconnected phase.
  23090. .ce
  23091. .parag
  23092. .ce
  23093. The DCE will initiate a data link resetting by transmitting an
  23094. .ce
  23095. SABM/SABME command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 
  23096. below). Upon reception of a UA response from the DTE, the DCE will reset 
  23097. its send and receive state variables V(S) and V(R) to zero, will stop its 
  23098. Timer\ T1, and will remain in the information transfer phase. Upon reception 
  23099. of a DM response from the DTE as a denial to the data link resetting request, 
  23100. the DCE will stop its Timer\ T1 and will enter the disconnected phase. 
  23101. .ce
  23102. .parag
  23103. .ce
  23104. The DCE, having sent an SABM/SABME command, will ignore and discard
  23105. .ce
  23106. any frames received from the DTE except an SABM/SABME or DISC command, 
  23107. or a UA or DM response. The receipt of an SABM/SABME or DISC command from 
  23108. the DTE will result in a collision situation that is resolved per \(sc\ 
  23109. 2.4.4.5 above. Frames 
  23110. .ce
  23111. other than the UA or DM response sent in response to a received SABM/SABME 
  23112. or DISC command will be sent only after the data link is reset and if no 
  23113. .ce
  23114. outstanding SABM/SABME command exists.
  23115. .ce
  23116. .parag
  23117. .ce
  23118.  
  23119. .ce
  23120. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  23121. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  23122. .ce
  23123. resend the SABM/SABME command and will restart Timer\ T1. After N2 attempts 
  23124. to reset the data link, the DCE will initiate appropriate higher layer 
  23125. recovery 
  23126. .ce
  23127. action and will enter the disconnected phase. The value of N2 is defined in
  23128. .ce
  23129. \(sc\ 2.4.8.4 below.
  23130. .ce
  23131. .parag
  23132. .ce
  23133. 2.4.7.3
  23134. .ce
  23135. The DCE may ask the DTE to reset the data link by transmitting an FRMR 
  23136. response (see \(sc\ 2.4.6.1 above). After transmitting an FRMR response, 
  23137. .ce
  23138. the DCE will enter the frame rejection condition.
  23139. .ce
  23140. .parag
  23141. .ce
  23142. The frame rejection condition is cleared when the DCE receives an SABM/SABME 
  23143. command, a DISC command, a FRMR response, or a DM response; or if 
  23144. .ce
  23145. the DCE transmits an SABM/SABME command, a DISC command, or a DM response.
  23146. .ce
  23147. Other commands received while in the frame rejection condition will cause 
  23148. the DCE to retransmit the FRMR response with the same information field 
  23149. as 
  23150. .ce
  23151. originally transmitted.
  23152. .ce
  23153. .parag
  23154. .ce
  23155. The DCE may start Timer\ T1 on transmission of the FRMR response. If
  23156. .ce
  23157. Timer\ T1 runs out before the frame rejection condition is cleared, the 
  23158. DCE may retransmit the FRMR response, and restart T1. After N2 attempts 
  23159. (time outs) to get the DTE to reset the data link, the DCE may reset the 
  23160. data link itself as described in \(sc\ 2.4.7.2 above. The value of N2 is 
  23161. defined in \(sc\ 2.4.8.4 below. 
  23162. .ce
  23163. .parag
  23164. .ce
  23165.  
  23166. .ce
  23167. In the frame rejection condition, I frames and supervisory frames will 
  23168. not be transmitted by the DCE. Also, received I frames and supervisory 
  23169. frames will be discarded by the DCE except for the observance of a P bit 
  23170. set to\ 1. 
  23171. .ce
  23172. When an additional FRMR response must be transmitted by the DCE as a result 
  23173. of the receipt of a P\ bit set to 1 while Timer\ T1 is running, Timer\ 
  23174. T1 will 
  23175. .ce
  23176. continue to run. Upon reception of an FRMR response (even during a frame
  23177. .ce
  23178. rejection condition), the DCE will initiate a resetting procedure by
  23179. .ce
  23180. transmitting an SABM/SABME command as described in \(sc\ 2.4.7.2 above, or will
  23181. .ce
  23182. transmit a DM response to ask the DTE to initiate the data link set\(hyup
  23183. .ce
  23184. procedure as described in \(sc\ 2.4.4.1 and enter the disconnected phase.
  23185. .ce
  23186. .parag
  23187. .ce
  23188. 2.4.8
  23189. .ce
  23190. \fIList of \fR 
  23191. .ce
  23192. \fILAPB system parameters\fR 
  23193. .ce
  23194. .parag
  23195. .ce
  23196. The DCE and DTE system parameters are as follows:
  23197. .ce
  23198. .parag
  23199. .ce
  23200.  
  23201. .ce
  23202. 2.4.8.1
  23203. .ce
  23204. \fITimer\fR 
  23205. .ce
  23206. \fIT1\fR 
  23207. .ce
  23208. .parag
  23209. .ce
  23210. The value of the DTE Timer T1 system parameter may be different
  23211. .ce
  23212. than the value of the DCE Timer T1 system parameter. These values shall 
  23213. be made known to both the DTE and the DCE, and agreed to for a period of 
  23214. time by both the DTE and the DCE. 
  23215. .ce
  23216. .parag
  23217. .ce
  23218. The period of Timer T1, at the end of which retransmission of a frame may 
  23219. be initiated (see \(sc\ 2.4.4 and \(sc\ 2.4.5 above for the DCE), shall 
  23220. take into account whether T1 is started at the beginning or the end of 
  23221. the transmission of a frame. 
  23222. .ce
  23223. .parag
  23224. .ce
  23225. The proper operation of the procedure requires that the transmitter's (DCE 
  23226. or DTE) Timer\ T1 be greater than the maximum time between transmission 
  23227. of a frame (SABM/SABME, DISC, I\ or supervisory command, or DM or FRMR 
  23228. response) 
  23229. .ce
  23230. and the reception of the corresponding frame returned as an answer to that
  23231. .ce
  23232. frame (UA, DM or acknowledging frame). Therefore, the receiver (DCE or DTE)
  23233. .ce
  23234. should not delay the response or acknowledging frame returned to one of the
  23235. .ce
  23236. above frames by more than a value\ T2, where T2 is a system parameter (see
  23237. .ce
  23238. \(sc\ 2.4.8.2).
  23239. .ce
  23240. .parag
  23241. .ce
  23242.  
  23243. .ce
  23244. The DCE will not delay the response or acknowledging frame returned to 
  23245. one of the above DTE frames by more than a period\ T2. 
  23246. .ce
  23247. .parag
  23248. .ce
  23249. 2.4.8.2
  23250. .ce
  23251. \fIParameter T2\fR 
  23252. .ce
  23253. .parag
  23254. .ce
  23255. The value of the DTE parameter T2 may be different than the value of the 
  23256. DCE parameter T2. These values shall be made known to both the DTE and 
  23257. the DCE, and agreed to for a period of time by both the DTE and the DCE. 
  23258. .ce
  23259. .parag
  23260. .ce
  23261.  
  23262. .ce
  23263. The period of parameter T2 shall indicate the amount of time
  23264. .ce
  23265. available at the DCE or DTE before the acknowledging frame must be initiated 
  23266. in order to ensure its receipt by the DTE or DCE, respectively, prior to 
  23267. Timer\ T1 running out at the DTE or DCE (parameter\ T2\ <\ Timer\ T1). 
  23268. .ce
  23269. .parag
  23270. .ce
  23271. \fINote\fR 
  23272. .ce
  23273. \ \(em\ The period of parameter T2 shall take into account the
  23274. .ce
  23275. following timing factors: the transmission time of the acknowledging frame, 
  23276. the propagation time over the access data link, the stated processing times 
  23277. at the DCE and the DTE, and the time to complete the transmission of the 
  23278. frame(s) in the DCE or DTE transmit queue that are neither displaceable 
  23279. or modifiable in an orderly manner. 
  23280. .ce
  23281. .parag
  23282. .ce
  23283.  
  23284. .ce
  23285. Given a value for Timer T1 for the DTE or DCE, the value of parameter T2 
  23286. at the DCE or DTE, respectively, must be no larger than T1 minus\ 2 times 
  23287. the propagation time over the access data link, minus the frame processing 
  23288. time at the DCE, minus the frame processing time at the DTE, and minus 
  23289. the transmission time of the acknowledging frame by the DCE or DTE, respectively. 
  23290. .ce
  23291. .parag
  23292. .ce
  23293.  
  23294. .ce
  23295. 2.4.8.3
  23296. .ce
  23297. \fITimer T3\fR 
  23298. .ce
  23299. .parag
  23300. .ce
  23301. The DCE shall support a Timer T3 system parameter, the value of
  23302. .ce
  23303. which shall be made known to the DTE.
  23304. .ce
  23305. .parag
  23306. .ce
  23307. The period of Timer T3, at the end of which an indication of an
  23308. .ce
  23309. observed excessively long idle channel state condition is passed to the 
  23310. Packet Layer, shall be sufficiently greater than the period of the DCE 
  23311. Timer T1 
  23312. .ce
  23313. (i.e.\ T3\ >\ T1) so that the expiration of T3 provides the desired level of
  23314. .ce
  23315. assurance that the data link channel is in a non\(hyactive, non\(hyoperational 
  23316. state, and is in need of data link set\(hyup before normal data link operation 
  23317. can 
  23318. .ce
  23319. resume.
  23320. .ce
  23321. .parag
  23322. .ce
  23323. 2.4.8.4
  23324. .ce
  23325. \fIMaximum number of attempts\fR 
  23326. .ce
  23327. \fIto complete a\fR 
  23328. .ce
  23329.  
  23330. .ce
  23331. \fItransmission N2\fR 
  23332. .ce
  23333. .parag
  23334. .ce
  23335.  
  23336. .ce
  23337. The value of the DTE N2 system parameter may be different than the value 
  23338. of the DCE N2 system parameter. These values shall be made known to both 
  23339. the DTE and the DCE, and agreed to for a period of time by both the DTE 
  23340. and the DCE. 
  23341. .ce
  23342. .parag
  23343. .ce
  23344. The value of N2 shall indicate the maximum number of attempts made by the 
  23345. DCE or DTE to complete the successful transmission of a frame to the DTE 
  23346. or DCE, respectively. 
  23347. .ce
  23348. .parag
  23349. .ce
  23350. 2.4.8.5
  23351. .ce
  23352. \fIMaximum number of bits in an I frame N1\fR 
  23353. .ce
  23354. .parag
  23355. .ce
  23356. The value of the DTE N1 system parameter may be different than the value 
  23357. of the DCE N1 system parameter. These values shall be made known to both 
  23358. the DTE and the DCE. 
  23359. .ce
  23360. .parag
  23361. .ce
  23362. The values of N1 shall indicate the maximum number of bits in an
  23363. .ce
  23364. I\ frame (excluding flags and 0\ bits inserted for transparency) that the 
  23365. DCE or DTE is willing to accept from the DTE or DCE, respectively. 
  23366. .ce
  23367. .parag
  23368. .ce
  23369. In order to allow for universal operation, a DTE should support a
  23370. .ce
  23371. value of DTE N1 which is not less than 1080\ bits (135\ octets). DTEs should 
  23372. be aware that the network may transmit longer packets (see \(sc\ 5.2), 
  23373. that may result in a data link layer problem. 
  23374. .ce
  23375. .parag
  23376. .ce
  23377.  
  23378. .ce
  23379. All networks shall offer to a DTE which requires it, a value of DCE N1 
  23380. which is greater than or equal to 2072\ bits (259\ octets) plus the length 
  23381. of the address, control and FCS fields at the DTE/DCE interface, and greater 
  23382. than or equal to the maximum length of the data packets which may cross 
  23383. the DTE/DCE 
  23384. .ce
  23385. interface plus the length of the address, control and FCS fields at the 
  23386. DTE/DCE interface. 
  23387. .ce
  23388. .parag
  23389. .ce
  23390. Appendix II provides a description of how the values stated above are  derived.
  23391. .ce
  23392. .parag
  23393. .ce
  23394. 2.4.8.6
  23395. .ce
  23396. \fIMaximum number of \fR 
  23397. .ce
  23398. \fIoutstanding I frames k\fR 
  23399. .ce
  23400. .parag
  23401. .ce
  23402. The value of the DTE k system parameter shall be the same as the
  23403. .ce
  23404. value of the DCE k system parameter. This value shall be agreed to for a
  23405. .ce
  23406. period of time by both the DTE and the DCE.
  23407. .ce
  23408. .parag
  23409. .ce
  23410. The value of k shall indicate the maximum number of sequentially
  23411. .ce
  23412. numbered I\ frames that the DTE or DCE may have outstanding
  23413. .ce
  23414. (i.e.\ unacknowledged) at any given time. The value of k shall never exceed
  23415. .ce
  23416. seven for modulo\ 8 operation, or one hundred and twenty\(hyseven for modulo\ 
  23417. 128 
  23418. .ce
  23419. operation. All networks (DCEs) shall support a value of seven. Other values 
  23420. of k (less than and greater than seven) may also be supported by networks 
  23421. .ce
  23422. (DCEs).
  23423. .ce
  23424. .parag
  23425. .ce
  23426. .line
  23427. .ce
  23428. \fBMONTAGE : \(sc 2.5 de cette Recommandation sur le reste de cette page\fR 
  23429. .ce
  23430. .parag
  23431. .ce
  23432.  
  23433. .ce
  23434. .line
  23435. .ad r
  23436. \fBTable 4/X.25 [T4/X.25], p.\fR 
  23437. .sp 1P
  23438. .RT
  23439. .ad b
  23440. .RT
  23441. .LP
  23442. .bp
  23443. .sp 1P
  23444. .LP
  23445. 2.3.2.1.1
  23446.     \fIInformation transfer format\fR \fI \(em I\fR 
  23447. .sp 9p
  23448. .RT
  23449. .PP
  23450. The I format is used to perform an information transfer. The
  23451. functions of N(S), N(R) and P are independent; i.e.,\ each I\ frame has 
  23452. an N(S), an N(R) which may or may not acknowledge additional I\ frames 
  23453. received by the 
  23454. DCE or DTE, and a P\ bit that may be set to\ 0 or\ 1.
  23455. .RT
  23456. .sp 1P
  23457. .LP
  23458. 2.3.2.1.2
  23459.     \fISupervisory format\fR \fI \(em S\fR 
  23460. .sp 9p
  23461. .RT
  23462. .PP
  23463. The S format is used to perform data link supervisory control
  23464. functions such as acknowledge I\ frames, request retransmission of I\ frames, 
  23465. and to request a temporary suspension of transmission of I\ frames. The 
  23466. functions of N(R) and P/F are independent; i.e.,\ each supervisory frame 
  23467. has an N(R) which 
  23468. may or may not acknowledge additional I\ frames received by the DCE or\ 
  23469. DTE, and a P/F\ bit that may be set to\ 0 or\ 1. 
  23470. .RT
  23471. .sp 1P
  23472. .LP
  23473. 2.3.2.1.3
  23474.     \fIUnnumbered format\fR \fI \(em U\fR 
  23475. .sp 9p
  23476. .RT
  23477. .PP
  23478. The U format is used to provide additional data link control
  23479. functions. This format contains no sequence numbers, but does include a 
  23480. P/F\ bit that may be set to\ 0 or\ 1. The unnumbered frames have the same 
  23481. control field 
  23482. length (one octet) in both basic (modulo\ 8) operation and extended (modulo\ 
  23483. 128) operation. 
  23484. .RT
  23485. .sp 1P
  23486. .LP
  23487. 2.3.2.2
  23488.     \fIControl field parameters\fR 
  23489. .sp 9p
  23490. .RT
  23491. .PP
  23492. The various parameters associated with the control field formats
  23493. are described below.
  23494. .RT
  23495. .sp 1P
  23496. .LP
  23497. 2.3.2.2.1
  23498.     \fIModulus\fR 
  23499. .sp 9p
  23500. .RT
  23501. .PP
  23502. Each I frame is sequentially numbered and may have the value\ 0
  23503. through modulus minus\ 1 (where \*Qmodulus\*U is the modulus of the sequence
  23504. numbers). The modulus equals either\ 8 or\ 128 and the sequence numbers cycle
  23505. through the entire range.
  23506. .RT
  23507. .sp 1P
  23508. .LP
  23509. 2.3.2.2.2
  23510.     \fISend state variable\fR \fI V(S)\fR 
  23511. .sp 9p
  23512. .RT
  23513. .PP
  23514. The send state variable V(S) denotes the sequence number of the
  23515. next in\(hysequence I\ frame to be transmitted. V(S) can take on the values\ 0
  23516. through modulus minus\ 1. The value of V(S) is incremented by\ 1 with each
  23517. successive I\ frame transmission, but cannot exceed the N(R) of the last
  23518. received\ I or supervisory frame by more than the maximum number of outstanding 
  23519. I\ frames\ (\fIk\fR ). The value of\ k is defined in \(sc\ 2.4.8.6 below. 
  23520. .RT
  23521. .sp 1P
  23522. .LP
  23523. 2.3.2.2.3
  23524.     \fISend sequence number\fR \fI N(S)\fR 
  23525. .sp 9p
  23526. .RT
  23527. .PP
  23528. Only I frames contain N(S), the send sequence number of transmitted I\ 
  23529. frames. At the time that an in\(hysequence I\ frame is designated for 
  23530. transmission, the value of N(S) is set equal to the value of the send state
  23531. variable\ V(S).
  23532. .RT
  23533. .sp 1P
  23534. .LP
  23535. 2.3.2.2.4
  23536.     \fIReceive state variable\fR \fIV(R)\fR 
  23537. .sp 9p
  23538. .RT
  23539. .PP
  23540. The receive state variable V(R) denotes the sequence number of the next 
  23541. in\(hysequence I\ frame expected to be received. V(R) can take on the values 
  23542. 0 through modulus minus\ 1. The value of V(R) is incremented by\ 1 by the 
  23543. receipt of an error\(hyfree, in\(hysequence I\ frame whose send sequence 
  23544. number N(S) equals 
  23545. the receive state variable V(R).
  23546. .RT
  23547. .sp 1P
  23548. .LP
  23549. 2.3.2.2.5
  23550.     \fIReceive sequence number\fR \fI N(R)\fR 
  23551. .sp 9p
  23552. .RT
  23553. .PP
  23554. All I frames and supervisory frames contain N(R), the expected send sequence 
  23555. number of the next received I\ frame. At the time that a frame of the above 
  23556. types is designated for transmission, the value of N(R) is set equal to 
  23557. the current value of the receive state variable V(R). N(R) indicates that 
  23558. the DCE or DTE transmitting the N(R) has received correctly all I\ frames 
  23559. numbered up to and including N(R)\ \(em\ 1. 
  23560. .RT
  23561. .sp 1P
  23562. .LP
  23563. 2.3.2.2.6
  23564.     \fIPoll/Final bit\fR \fI P/F\fR 
  23565. .sp 9p
  23566. .RT
  23567. .PP
  23568. All frames contain P/F, the Poll/Final bit. In command frames, the P/F 
  23569. bit is referred to as the P bit. In response frames, it is referred to 
  23570. as the F\ bit. 
  23571. .bp
  23572. .RT
  23573. .sp 1P
  23574. .LP
  23575. 2.3.3
  23576.     \fIFunctions of the Poll/Final bit\fR 
  23577. .sp 9p
  23578. .RT
  23579. .PP
  23580. The Poll bit set to 1 is used by the DCE or DTE to solicit (poll) a response 
  23581. from the DTE or DCE, respectively. The Final bit set to\ 1 is used by the 
  23582. DCE or DTE to indicate the response frame transmitted by the DTE or DCE, 
  23583. respectively, as a result of the soliciting (poll) command.
  23584. .PP
  23585. The use of the P/F bit is described in \(sc\ 2.4.3 below.
  23586. .RT
  23587. .sp 1P
  23588. .LP
  23589. 2.3.4
  23590.     \fICommands and responses\fR 
  23591. .sp 9p
  23592. .RT
  23593. .PP
  23594. For basic (modulo 8) operation, the commands and responses
  23595. represented in Table\ 5/X.25 will be supported by the DCE and the\ DTE.
  23596. .PP
  23597. For extended (modulo 128) operation, the commands and responses
  23598. represented in Table\ 6/X.25 will be supported by the DCE and the DTE.
  23599. .RT
  23600. .PP
  23601. For purposes of the LAPB procedures, the supervisory function bit encoding 
  23602. \*Q11\*U and those encodings of the modifier function bits in 
  23603. Tables\ 3/X.25 and 4/X.25 not identified in Tables\ 5/X.25 or 6/X.25 are
  23604. identified as \*Qundefined or not implemented\*U command and response control
  23605. fields.
  23606. .PP
  23607. The commands and responses in Tables 5/X.25 and 6/X.25 are defined as  follows:
  23608. .RT
  23609. .sp 1P
  23610. .LP
  23611. 2.3.4.1
  23612.     \fIInformation (I)\fR \fI command\fR 
  23613. .sp 9p
  23614. .RT
  23615. .PP
  23616. The function of the information (I) command is to transfer across a data 
  23617. link a sequentially numbered frame containing an information field. 
  23618. .RT
  23619. .ce
  23620. .line
  23621. .ce
  23622. \fBTable 5/X.25 [T5.25], p.\fR 
  23623. .ce
  23624. .line
  23625. .ce
  23626. \fBTable 6/X.25 [T6.25], p.\fR 
  23627. .ce
  23628. 2.3.4.2
  23629. .ce
  23630. \fIReceive ready (RR)\fR 
  23631. .ce
  23632. \fI command and response\fR 
  23633. .ce
  23634. .parag
  23635. .ce
  23636. The receive ready (RR) supervisory frame is used by the DCE
  23637. .ce
  23638. or DTE to:
  23639. .ce
  23640. .parag
  23641. .ce
  23642.  
  23643. .ce
  23644. 1)
  23645. .ce
  23646. indicate it is ready to receive an I frame; and
  23647. .ce
  23648. .parag
  23649. .ce
  23650. 2)
  23651. .ce
  23652. acknowledge previously received I frames numbered up to and
  23653. .ce
  23654. including N(R)\ \(em\ 1.
  23655. .ce
  23656. .parag
  23657. .ce
  23658. An RR frame may be used to indicate the clearance of a busy
  23659. .ce
  23660. condition that was reported by the earlier transmission of an RNR frame 
  23661. by that same station (DCE or\ DTE). In addition to indicating the DCE or 
  23662. DTE status, the RR command with the P\ bit set to\ 1 may be used by the 
  23663. DCE or DTE to ask for the status of the DTE or DCE, respectively. 
  23664. .ce
  23665. .parag
  23666. .ce
  23667. 2.3.4.3
  23668. .ce
  23669. \fIReceive not ready (RNR) command and response\fR 
  23670. .ce
  23671. .parag
  23672. .ce
  23673. The receive not ready (RNR) supervisory frame is used by the DCE or DTE 
  23674. to indicate a busy condition; i.e.\ temporary inability to accept 
  23675. .ce
  23676. additional incoming I\ frames. I\ frames numbered up to and including N(R)\ 
  23677. \(em\ 1 
  23678. .ce
  23679. are acknowledged. I\ frame N(R) and any subsequent I\ frames received, if any,
  23680. .ce
  23681. are not acknowledged; the acceptance status of these I\ frames will be 
  23682. indicated in subsequent exchanges. 
  23683. .ce
  23684. .parag
  23685. .ce
  23686. In addition to indicating the DCE or DTE status, the RNR command with the 
  23687. P bit set to\ 1 may be used by an DCE or DTE to ask for the status of the 
  23688. .ce
  23689. DTE or DCE, respectively.
  23690. .ce
  23691. .parag
  23692. .ce
  23693. 2.3.4.4
  23694. .ce
  23695. \fIReject (REJ) command and response\fR 
  23696. .ce
  23697. .parag
  23698. .ce
  23699. The reject (REJ) supervisory frame is used by the DCE or DTE to request 
  23700. transmission of I\ frames starting with the frame numbered N(R). 
  23701. .ce
  23702. I\ frames numbered N(R)\ \(em\ 1 and below are acknowledged. Additional 
  23703. I\ frames 
  23704. .ce
  23705. pending initial transmission may be transmitted following the retransmitted
  23706. .ce
  23707. I\ frame(s).
  23708. .ce
  23709. .parag
  23710. .ce
  23711.  
  23712. .ce
  23713. Only one REJ exception condition for a given direction of information transfer 
  23714. may be established at any time. The REJ exception condition is cleared 
  23715. (reset) upon the receipt of an I\ frame with an N(S) equal to the N(R) 
  23716. of the 
  23717. .ce
  23718. REJ\ frame.
  23719. .ce
  23720. .parag
  23721. .ce
  23722. An REJ frame may be used to indicate the clearance of a busy condition 
  23723. that was reported by the earlier transmission of an RNR frame by that same 
  23724. .ce
  23725. station (DCE or\ DTE). In addition to indicating the DCE or DTE status, the
  23726. .ce
  23727. REJ\ command with the P bit set to\ 1 may be used by the DCE or\ DTE to ask for
  23728. .ce
  23729. the status of the DTE or\ DCE, respectively.
  23730. .ce
  23731. .parag
  23732. .ce
  23733. \fR 
  23734. .ce
  23735. 2.3.4.5
  23736. .ce
  23737. \fISet asynchronous balanced mode (SABM)\fR 
  23738. .ce
  23739. \fIcommand/\fR 
  23740. .ce
  23741. \fISet asynchronous balanced mode extended (SABME)\fR 
  23742. .ce
  23743.  
  23744. .ce
  23745. \fIcommand (subscription time option)\fR 
  23746. .ce
  23747. .parag
  23748. .ce
  23749.  
  23750. .ce
  23751. The SABM unnumbered command is used to place the addressed DCE or DTE in 
  23752. an asynchronous balanced mode (ABM) information transfer phase where all 
  23753. command/response control fields will be one\ octet in length. 
  23754. .ce
  23755. .parag
  23756. .ce
  23757. The SABME unnumbered command is used to place the addressed DCE or DTE 
  23758. in an asynchronous balanced mode\ (ABM) information transfer phase where 
  23759. .ce
  23760. numbered command/response control fields will be two octets in length, and
  23761. .ce
  23762. unnumbered command/response control fields will be one octet in length.
  23763. .ce
  23764. .parag
  23765. .ce
  23766.  
  23767. .ce
  23768. No information field is permitted with the SABM or SABME command. The transmission 
  23769. of a SABM/SABME command indicates the clearance of a busy 
  23770. .ce
  23771. condition that was reported by the earlier trans
  23772. .ce
  23773. mission\ of an RNR\ frame by   that
  23774. .ce
  23775. same station (DCE or\ DTE). The DCE or DTE confirms acceptance of SABM/SABME
  23776. .ce
  23777. [modulo\ 8 (basic) operation/modulo\ 128 (extended) operation] command by the
  23778. .ce
  23779. transmission, at the first opportunity, of a UA\ response. Upon acceptance of
  23780. .ce
  23781. this command, the DCE or DTE send state variable\ V(S) and receive state
  23782. .ce
  23783. variable V(R) are set to\ 0.
  23784. .ce
  23785. .parag
  23786. .ce
  23787. Previously transmitted I\ frames that are unacknowledged when this
  23788. .ce
  23789. command is actioned remain unac
  23790. .ce
  23791. knowledged.\ It is the responsibility of a
  23792. .ce
  23793. higher layer (e.g.\ Packet Layer or MLP) to recover from the possible loss of
  23794. .ce
  23795. the contents (e.g.\ packets) of such I\ frames.
  23796. .ce
  23797. .parag
  23798. .ce
  23799. \fINote\fR 
  23800. .ce
  23801. \ \(em\ The mode of operation of a data link [basic (modulo 8) or
  23802. .ce
  23803. extended (modulo\ 128)] is determined at subscription time and is only 
  23804. changed by going through a new subscription process. 
  23805. .ce
  23806. .parag
  23807. .ce
  23808. 2.3.4.6
  23809. .ce
  23810. \fIDisconnect (DISC)\fR 
  23811. .ce
  23812. \fI command\fR 
  23813. .ce
  23814. .parag
  23815. .ce
  23816. The DISC unnumbered command is used to terminate the mode
  23817. .ce
  23818. previously set. It is used to inform the DCE or DTE receiving the DISC 
  23819. command that the DTE or DCE sending the DISC command is suspending operation. 
  23820. No 
  23821. .ce
  23822. information field is permitted with the DISC command. Prior to actioning the
  23823. .ce
  23824. DISC command, the DCE or DTE receiving the DISC command confirms the acceptance 
  23825. of the DISC command by the transmission of a UA response. The DTE or DCE 
  23826. .ce
  23827. sending the DISC command enters the disconnected phase when it receives the
  23828. .ce
  23829. acknowledging UA response.
  23830. .ce
  23831. .parag
  23832. .ce
  23833. Previously transmitted I frames that are unacknowledged when this
  23834. .ce
  23835. command is actioned remain unacknowledged. It is the responsibility of 
  23836. a higher layer (e.g.\ Packet Layer or MLP) to recover from the possible 
  23837. loss of the 
  23838. .ce
  23839. contents (e.g.,\ packets) of such I frames.
  23840. .ce
  23841. .parag
  23842. .ce
  23843. 2.3.4.7
  23844. .ce
  23845. \fIUnnumbered acknowledgement (UA)\fR 
  23846. .ce
  23847. \fI response\fR 
  23848. .ce
  23849. .parag
  23850. .ce
  23851. The UA unnumbered response is used by the DCE or DTE to acknowledge the 
  23852. receipt and acceptance of the mode\(hysetting commands. Received mode\(hysetting 
  23853. commands are not actioned until the UA response is transmitted. The 
  23854. .ce
  23855. transmission of a UA response indicates the clearance of a busy condition 
  23856. that was reported by the earlier transmission of an RNR frame by that same 
  23857. station (DCE or DTE). No information field is permitted with the UA response. 
  23858. .ce
  23859. .parag
  23860. .ce
  23861.  
  23862. .ce
  23863. 2.3.4.8
  23864. .ce
  23865. \fIDisconnected mode (DM)\fR 
  23866. .ce
  23867. \fI response\fR 
  23868. .ce
  23869. .parag
  23870. .ce
  23871. The DM unnumbered response is used to report a status where the DCE or 
  23872. DTE is logically disconnected from the data link, and is in the disconnected 
  23873. phase. The DM response may be sent to indicate that the DCE or DTE has 
  23874. entered the disconnected phase without benefit of having received a DISC 
  23875. command, or, if sent in response to the reception of a mode setting command, 
  23876. is sent to 
  23877. .ce
  23878. inform the DTE or DCE that the DCE or DTE, respectively, is still in the
  23879. .ce
  23880. disconnected phase and cannot execute the set mode command. No information
  23881. .ce
  23882. field is permitted with the DM response.
  23883. .ce
  23884. .parag
  23885. .ce
  23886. A DCE or DTE in a disconnected phase will monitor received commands
  23887. .ce
  23888. and will react to an SABM/SABME command as outlined in \(sc\ 2.4.4 below, 
  23889. and will respond with a DM response with the F bit set to\ 1 to any other 
  23890. command 
  23891. .ce
  23892. received with the P\ bit set to\ 1.
  23893. .ce
  23894. .parag
  23895. .ce
  23896. 2.3.4.9
  23897. .ce
  23898. \fIFrame reject (FRMR)\fR 
  23899. .ce
  23900. \fI response\fR 
  23901. .ce
  23902. .parag
  23903. .ce
  23904. The FRMR unnumbered response is used by the DCE or DTE to report an error 
  23905. condition not recoverable by retransmission of the identical frame; 
  23906. .ce
  23907. i.e.\ at least one of the following conditions, which results from the 
  23908. receipt of a valid frame: 
  23909. .ce
  23910. .parag
  23911. .ce
  23912. 1)
  23913. .ce
  23914. the receipt of a command or response control field that is
  23915. .ce
  23916. undefined or not implemented;
  23917. .ce
  23918. .parag
  23919. .ce
  23920. 2)
  23921. .ce
  23922. the receipt of an I frame with an information field which
  23923. .ce
  23924. exceeds the maximum established length;
  23925. .ce
  23926. .parag
  23927. .ce
  23928. 3)
  23929. .ce
  23930. the receipt of an invalid N(R); or
  23931. .ce
  23932. .parag
  23933. .ce
  23934. 4)
  23935. .ce
  23936. the receipt of a frame with an information field which is
  23937. .ce
  23938. not permitted or the receipt of a supervisory or unnumbered
  23939. .ce
  23940. frame with incorrect length.
  23941. .ce
  23942. .parag
  23943. .ce
  23944. An undefined or not implemented control field is any of the
  23945. .ce
  23946. control field encodings that are not identified in Tables\ 5/X.25 or\ 6/X.25.
  23947. .ce
  23948. .parag
  23949. .ce
  23950.  
  23951. .ce
  23952. A valid N(R) must be within the range from the lowest send sequence
  23953. .ce
  23954. number N(S) of the still unacknowledged frame(s) to the current DCE send 
  23955. state variable inclusive (or to the current internal variable \fIx\fR 
  23956. .ce
  23957. if the DCE is in
  23958. .ce
  23959. the timer recovery condition as described in \(sc\ 2.4.5.9).
  23960. .ce
  23961. .parag
  23962. .ce
  23963.  
  23964. .ce
  23965. An information field which immediately follows the control field, and consists 
  23966. of\ 3 or 5\ octets [modulo\ 8 (basic) operation or modulo\ 128 (extended) 
  23967. operation, respectively], is returned with this response and provides the 
  23968. .ce
  23969. reason for the FRMR response. These formats are given in Tables\ 7/X.25
  23970. .ce
  23971. and\ 8/X.25.
  23972. .ce
  23973. .parag
  23974. .ce
  23975. 2.3.5
  23976. .ce
  23977. \fIException condition reporting and recovery\fR 
  23978. .ce
  23979. .parag
  23980. .ce
  23981. The error recovery procedures which are available to effect
  23982. .ce
  23983. recovery following the detection/occurrence of an 
  23984. .ce
  23985. exception condition
  23986. .ce
  23987.  at the Data Link Layer are described below. Exception conditions described 
  23988. are those situations which may occur as the result of transmission errors, 
  23989. DCE or DTE malfunction, or operational situations. 
  23990. .ce
  23991. .parag
  23992. .ce
  23993. 2.3.5.1
  23994. .ce
  23995. \fIBusy condition\fR 
  23996. .ce
  23997. .parag
  23998. .ce
  23999. The busy condition results when the DCE or DTE is temporarily
  24000. .ce
  24001. unable to continue to receive I frames due to internal constraints,
  24002. .ce
  24003. e.g.\ receive buffering limitations. In this case an RNR frame is transmitted
  24004. .ce
  24005. from the busy DCE or DTE. I\ frames pending transmission may be transmitted 
  24006. from the busy DCE or DTE prior to or following the RNR\ frame. 
  24007. .ce
  24008. .parag
  24009. .ce
  24010. An indication that the busy condition has cleared is communicated by the 
  24011. transmission of a UA (only in response to a SABM/SABME command), RR, REJ 
  24012. or SABM/SABME (modulo\ 8/modulo\ 128) frame. 
  24013. .ce
  24014. .parag
  24015. .ce
  24016. .line
  24017. .ce
  24018. \fBTable 7/X.25 [T7.25], p.\fR 
  24019. .ce
  24020. .line
  24021. .ce
  24022. \fBTable 8/X.25 [T8.25], p.\fR 
  24023. .ce
  24024. 2.3.5.2
  24025. .ce
  24026. \fIN(S) sequence error condition\fR 
  24027. .ce
  24028. .parag
  24029. .ce
  24030. The information field of all I frames received whose N(S) does not equal 
  24031. the receive state variable V(R) will be discarded. 
  24032. .ce
  24033. .parag
  24034. .ce
  24035. An N(S) sequence error exception condition occurs in the receiver when 
  24036. an I\ frame received contains an N(S) which is not equal to the receive 
  24037. state 
  24038. .ce
  24039. variable V(R) at the receiver. The receiver does not acknowledge (increment 
  24040. its receive state variable) the I\ frame causing the sequence error, or 
  24041. any I\ frame which may follow, until an I\ frame with the correct N(S) 
  24042. is received. 
  24043. .ce
  24044. .parag
  24045. .ce
  24046.  
  24047. .ce
  24048. A DCE or DTE which receives one or more valid I frames having sequence 
  24049. errors or subsequent supervisory frames (RR, RNR and REJ) shall accept 
  24050. the 
  24051. .ce
  24052. control information contained in the N(R) field and the P or F bit to perform 
  24053. data link control functions; e.g.\ to receive acknowledgement of previously 
  24054. .ce
  24055. transmitted I\ frames and to cause the DCE or DTE to respond (P bit set to 1).
  24056. .ce
  24057. .parag
  24058. .ce
  24059.  
  24060. .ce
  24061. The means specified in \(sc\(sc\ 2.3.5.2.1 and 2.3.5.2.2 shall be available 
  24062. for initiating the retransmission of lost or errored I\ frames following 
  24063. the 
  24064. .ce
  24065. occurrence of an N(S) sequence error condition.
  24066. .ce
  24067. .parag
  24068. .ce
  24069. 2.3.5.2.1
  24070. .ce
  24071. \fIREJ recovery\fR 
  24072. .ce
  24073. .parag
  24074. .ce
  24075. The REJ frame is used by a receiving DCE or DTE to initiate a
  24076. .ce
  24077. recovery (retransmission) following the detection of an N(S) sequence error.
  24078. .ce
  24079. .parag
  24080. .ce
  24081.  
  24082. .ce
  24083. With respect to each direction of transmission on the data link, only one 
  24084. \*Qsent REJ\*U exception condition from a DCE or DTE, to a DTE or DCE, 
  24085. is 
  24086. .ce
  24087. established at a time. A \*Qsent REJ\*U exception condition is cleared when the
  24088. .ce
  24089. requested I\ frame is received.
  24090. .ce
  24091. .parag
  24092. .ce
  24093.  
  24094. .ce
  24095. A DCE or DTE receiving a REJ frame initiates sequential
  24096. .ce
  24097. (re\(hy)transmission of I\ frames starting with the I\ frame indicated 
  24098. by the N(R) contained in the REJ frame. The retransmitted frames may contain 
  24099. an N(R) and a P bit that are updated from, and therefore different from, 
  24100. the ones contained in the originally transmitted I\ frames. 
  24101. .ce
  24102. .parag
  24103. .ce
  24104. 2.3.5.2.2
  24105. .ce
  24106. \fITime\(hyout recovery\fR 
  24107. .ce
  24108. .parag
  24109. .ce
  24110. If a DCE or DTE, due to a transmission error, does not receive (or receives 
  24111. and discards) a single I\ frame or the last I\ frame(s) in a sequence of 
  24112. I\ frames, it will not detect an N(S) sequence error condition and, therefore, 
  24113. will not transmit a REJ frame. The DTE or DCE which transmitted the 
  24114. .ce
  24115. unacknowledged I\ frame(s) shall, following the completion of a system 
  24116. specified time\(hyout period (see \(sc\(sc\ 2.4.5.1 and 2.4.5.9 below), 
  24117. take appropriate recovery action to determine at which I\ frame retransmission 
  24118. must begin. The 
  24119. .ce
  24120. retransmitted frame(s) may contain an N(R) and a P bit that is updated from,
  24121. .ce
  24122. and therefore different from, the ones contained in the originally transmitted 
  24123. frame(s). 
  24124. .ce
  24125. .parag
  24126. .ce
  24127. 2.3.5.3
  24128. .ce
  24129. \fIInvalid frame\fR 
  24130. .ce
  24131. \fI condition\fR 
  24132. .ce
  24133. .parag
  24134. .ce
  24135. Any frame which is invalid will be discarded, and no action is
  24136. .ce
  24137. taken as the result of that frame. An invalid frame is defined as one
  24138. .ce
  24139. which:
  24140. .ce
  24141. .parag
  24142. .ce
  24143. a)
  24144. .ce
  24145. is not properly bounded by two flags;
  24146. .ce
  24147. .parag
  24148. .ce
  24149. b)
  24150. .ce
  24151. in basic (modulo 8) operation, contains fewer than 32 bits
  24152. .ce
  24153. between flags; in extended (modulo\ 128) operation, contains
  24154. .ce
  24155. fewer than 40\ bits between flags of frames that contain sequence
  24156. .ce
  24157. numbers or 32\ bits between flags of frames that do not contain
  24158. .ce
  24159. sequence numbers;
  24160. .ce
  24161. .parag
  24162. .ce
  24163. c)
  24164. .ce
  24165. contains a Frame Check Sequence (FCS) error; or
  24166. .ce
  24167. .parag
  24168. .ce
  24169. d)
  24170. .ce
  24171. contains an address other than A or B (for single link
  24172. .ce
  24173. operation) or other than C or D (for multilink operation).
  24174. .ce
  24175. .parag
  24176. .ce
  24177.  
  24178. .ce
  24179. For those networks that are octet aligned, a detection of
  24180. .ce
  24181. non\(hyoctet alignment may be made at the Data Link Layer by adding a frame
  24182. .ce
  24183. validity check that requires the number of bits between the opening flag and
  24184. .ce
  24185. the closing flag, excluding bits inserted for transparency, to be an integral 
  24186. number of octets in length, or the frame is considered invalid. 
  24187. .ce
  24188. .parag
  24189. .ce
  24190. 2.3.5.4
  24191. .ce
  24192. \fIFrame rejection\fR 
  24193. .ce
  24194. \fI condition\fR 
  24195. .ce
  24196. .parag
  24197. .ce
  24198. A frame rejection condition is established upon the receipt of an error\(hyfree 
  24199. frame with one of the conditions listed in \(sc\ 2.3.4.9 above. 
  24200. .ce
  24201. .parag
  24202. .ce
  24203.  
  24204. .ce
  24205. At the DCE or DTE, this frame rejection exception condition is
  24206. .ce
  24207. reported by an FRMR response for appropriate DTE or DCE action, respectively. 
  24208. Once a DCE has established such an exception condition, no additional I\ 
  24209. frames are accepted until the condition is reset by the DTE, except for 
  24210. examination of the P bit. The FRMR response may be repeated at each opportunity, 
  24211. as specified in \(sc\ 2.4.7.3, until recovery is effected by the DTE, or 
  24212. until the DCE initiates its own recovery in case the DTE does not respond. 
  24213. .ce
  24214. .parag
  24215. .ce
  24216. 2.3.5.5
  24217. .ce
  24218. \fIExcessive idle channel state condition on incoming\fR 
  24219. .ce
  24220.  
  24221. .ce
  24222. \fIchannel\fR 
  24223. .ce
  24224. .parag
  24225. .ce
  24226. Upon detection of an idle channel state condition (see \(sc\ 2.2.12.2 above) 
  24227. on the incoming channel, the DCE shall wait for a period\ T3 (see 
  24228. .ce
  24229. \(sc\ 2.4.8.3 below) without taking any specific action, waiting for detection 
  24230. of a return to the active channel state (i.e.,\ detection of at least one 
  24231. flag 
  24232. .ce
  24233. sequence). After the period\ T3, the DCE shall notify the higher layer 
  24234. (e.g.\ the Packet Layer or the MLP) of the excessive idle channel state 
  24235. condition, but 
  24236. .ce
  24237. shall not take any action that would preclude the DTE from establishing the
  24238. .ce
  24239. data link by normal data link set\(hyup procedures.
  24240. .ce
  24241. .parag
  24242. .ce
  24243. \fINote\fR 
  24244. .ce
  24245. \ \(em\ Other actions to be taken by the DCE at the Data Link Layer upon 
  24246. expiration of period\ T3 is a subject for further study. 
  24247. .ce
  24248. .parag
  24249. .ce
  24250.  
  24251. .ce
  24252. 2.4
  24253. .ce
  24254. \fIDescription of the \fR 
  24255. .ce
  24256. \fILAPB procedure\fR 
  24257. .ce
  24258. .parag
  24259. .ce
  24260. 2.4.1
  24261. .ce
  24262. \fILAPB basic and extended modes of operation\fR 
  24263. .ce
  24264. .parag
  24265. .ce
  24266. In accordance with the system choice made by the DTE at
  24267. .ce
  24268. subscription time, the DCE will either support modulo\ 8 (basic) operation or
  24269. .ce
  24270. will support modulo\ 128 (extended) operation. Changing from basic operation 
  24271. to extended operation, or vice versa, in the DCE requires resubscription 
  24272. by the 
  24273. .ce
  24274. DTE for the desired service, and is not supported dynamically.
  24275. .ce
  24276. .parag
  24277. .ce
  24278. Table 5/X.25 indicates the command and response control field formats used 
  24279. with the basic (modulo\ 8) service. The mode\(hysetting command employed 
  24280. to 
  24281. .ce
  24282. initialize (set up) or reset the basic mode is the SABM command. Table 
  24283. 6/X.25 indicates the command and response control field formats used with 
  24284. the extended (modulo\ 128) service. The mode\(hysetting command employed 
  24285. to initialize (set up) or reset the extended mode is the SABME command. 
  24286. .ce
  24287. .parag
  24288. .ce
  24289. 2.4.2
  24290. .ce
  24291. \fILAPB procedure for addressing\fR 
  24292. .ce
  24293. .parag
  24294. .ce
  24295. The address field identifies a frame as either a command or a
  24296. .ce
  24297. response. A command frame contains the address of the DCE or DTE to which 
  24298. the command is being sent. A response frame contains the address of the 
  24299. DCE or DTE sending the frame. 
  24300. .ce
  24301. .parag
  24302. .ce
  24303. In order to allow differentiation between single link operation and
  24304. .ce
  24305. the optional multilink operation for diagnostic and/or maintenance reasons,
  24306. .ce
  24307. different address pair encodings are assigned to data links operating with
  24308. .ce
  24309. multilink procedure compared to data links operating with the single link
  24310. .ce
  24311. procedure.
  24312. .ce
  24313. .parag
  24314. .ce
  24315. Frames containing commands transferred from the DCE to the DTE will
  24316. .ce
  24317. contain the address\ A for the single link operation and address\ C for the
  24318. .ce
  24319. multilink operation.
  24320. .ce
  24321. .parag
  24322. .ce
  24323. Frames containing responses transferred from the DCE to the DTE will contain 
  24324. the address\ B for the single link operation and address\ D for the 
  24325. .ce
  24326. multilink operation.
  24327. .ce
  24328. .parag
  24329. .ce
  24330.  
  24331. .ce
  24332. Frames containing commands transferred from the DTE to the DCE shall contain 
  24333. the address\ B for the single link operation and address\ D for the 
  24334. .ce
  24335. multilink operation.
  24336. .ce
  24337. .parag
  24338. .ce
  24339. Frames containing responses transferred from the DTE to the DCE shall contain 
  24340. the address\ A for the single link operation and address\ C for the 
  24341. .ce
  24342. multilink operation.
  24343. .ce
  24344. .parag
  24345. .ce
  24346. These addresses are coded as follows:
  24347. .ce
  24348. .parag
  24349. .ce
  24350. Address
  24351. .ce
  24352. 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8
  24353. .ce
  24354. .parag
  24355. .ce
  24356. Single link operation
  24357. .ce
  24358. \ \ A
  24359. .ce
  24360. 1\ 1\ 0\ 0\ 0\ 0\ 0\ 0
  24361. .ce
  24362. .line
  24363. .ce
  24364. \ \ B
  24365. .ce
  24366. 1\ 0\ 0\ 0\ 0\ 0\ 0\ 0
  24367. .ce
  24368. .parag
  24369. .ce
  24370. Multilink operation
  24371. .ce
  24372. \ \ C
  24373. .ce
  24374. 1\ 1\ 1\ 1\ 0\ 0\ 0\ 0
  24375. .ce
  24376. .line
  24377. .ce
  24378. \ \ D
  24379. .ce
  24380. 1\ 1\ 1\ 0\ 0\ 0\ 0\ 0
  24381. .ce
  24382. .parag
  24383. .ce
  24384. \fINote\fR 
  24385. .ce
  24386. \ \(em\ The DCE will discard all frames received with an address other 
  24387. than\ A or\ B (single link operation), or\ C or\ D (multilink operation). 
  24388. .ce
  24389. .parag
  24390. .ce
  24391. 2.4.3
  24392. .ce
  24393. \fILAPB procedure for the use of the P/F bit\fR 
  24394. .ce
  24395. .parag
  24396. .ce
  24397. The DCE or DTE receiving an SABM/SABME, DISC, supervisory command or I\ 
  24398. frame with the P\ bit set to\ 1 will set the F\ bit to\ 1 in the next response 
  24399. frame it transmits. 
  24400. .ce
  24401. .parag
  24402. .ce
  24403. The response frame returned by the DCE to an SABM/SABME or DISC
  24404. .ce
  24405. command with the P\ bit set to\ 1 will be a UA or DM response with the 
  24406. F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  24407. with the P\ bit set to\ 1, received during the information transfer phase, 
  24408. will be an RR, REJ, RNR or FRMR response with the F\ bit set to\ 1. The 
  24409. response frame returned by the 
  24410. .ce
  24411. DCE to a supervisory command with the P\ bit set to\ 1, received during the
  24412. .ce
  24413. information transfer phase, will be an RR, REJ, RNR or FRMR response with 
  24414. the F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  24415. or 
  24416. .ce
  24417. supervisory frame with the P\ bit set to\ 1, received during the disconnected
  24418. .ce
  24419. phase, will be a DM response with the F\ bit set to\ 1.
  24420. .ce
  24421. .parag
  24422. .ce
  24423. The P bit may be used by the DCE in conjunction with the timer
  24424. .ce
  24425. recovery condition (see \(sc\ 2.4.5.9 below).
  24426. .ce
  24427. .parag
  24428. .ce
  24429. \fINote\fR 
  24430. .ce
  24431. \ \(em\ Other use of the P bit by the DCE is a subject for further
  24432. .ce
  24433. study.
  24434. .ce
  24435. .parag
  24436. .ce
  24437. 2.4.4
  24438. .ce
  24439. \fILAPB procedure for data link set\(hyup and disconnection\fR 
  24440. .ce
  24441. .parag
  24442. .ce
  24443.  
  24444. .ce
  24445. 2.4.4.1
  24446. .ce
  24447. \fIData link set\(hyup\fR 
  24448. .ce
  24449. .parag
  24450. .ce
  24451. The DCE will indicate that it is able to set up the data link by
  24452. .ce
  24453. transmitting contiguous flags (active channel state).
  24454. .ce
  24455. .parag
  24456. .ce
  24457. Either the DTE or the DCE may initiate data link set\(hyup. Prior to
  24458. .ce
  24459. initiation of data link set\(hyup, either the DCE or the DTE may initiate data
  24460. .ce
  24461. link
  24462. .ce
  24463. disconnection (see \(sc\ 2.4.4.3) for the purpose of insuring that the 
  24464. DCE and the DTE are in the same phase. The DCE may also transmit an unsolicited 
  24465. DM response to request the DTE to initiate data link set\(hyup. 
  24466. .ce
  24467. .parag
  24468. .ce
  24469. The DTE shall initiate data link set\(hyup by transmitting an SABM/SABME 
  24470. command to the DCE. If, upon receipt of the SABM/SABME command correctly, 
  24471. the DCE determines that it can enter the information transfer phase, it 
  24472. will return a UA response to the DTE, will reset its send and receive state 
  24473. variables V(S) and V(R) to zero, and will consider that the data link is 
  24474. set up. If, upon 
  24475. .ce
  24476. receipt
  24477. .ce
  24478. of the SABM/SABME command correctly, the DCE determines that it cannot enter
  24479. .ce
  24480. the information transfer phase, it will return a DM response to the DTE as a
  24481. .ce
  24482. denial to the data link set\(hyup initialization and will consider that the
  24483. .ce
  24484. data link is
  24485. .ce
  24486. \fInot\fR 
  24487. .ce
  24488.  set up. In order to avoid misinterpretation of the DM response received, 
  24489. it is suggested that the DTE always sends its SABM/SABME command with the 
  24490. P\ bit set to\ 1. Otherwise, it is not possible to differentiate a DM response 
  24491. intended as a denial to data link set\(hyup from a DM response that is 
  24492. issued in a separate unsolicited sense as a request for a mode\(hysetting 
  24493. command (as described 
  24494. .ce
  24495. in\ \(sc\ 2.4.4.4.2).
  24496. .ce
  24497. .parag
  24498. .ce
  24499. The DCE will initiate data link set\(hyup by transmitting an SABM/SABME 
  24500. command to the DTE and starting its Timer\ T1 in order to determine when 
  24501. too 
  24502. .ce
  24503. much time has elapsed waiting for a reply (see \(sc\ 2.4.8.1 below). Upon 
  24504. reception of a UA response from the DTE, the DCE will reset its send and 
  24505. receive state 
  24506. .ce
  24507. variables\ V(S) and\ V(R) to zero, will stop its Timer\ T1, and will consider 
  24508. that the data link is set up. Upon reception of a DM response from the 
  24509. DTE as a 
  24510. .ce
  24511. denial
  24512. .ce
  24513. to the data link set\(hyup initialization, the DCE will stop its Timer\ 
  24514. T1 and will consider that the data link is \fInot\fR 
  24515. .ce
  24516. set up.
  24517. .ce
  24518. .parag
  24519. .ce
  24520.  
  24521. .ce
  24522. The DCE, having sent the SABM/SABME command, will ignore and discard any 
  24523. frames except an SABM/SABME or DISC command, or a UA or DM response 
  24524. .ce
  24525. received from the DTE. The receipt of an SABM/SABME or DISC command from the
  24526. .ce
  24527. DTE will result in a collision situation that is resolved per \(sc\ 2.4.4.5 
  24528. below. Frames other than the UA and DM responses sent in response to a 
  24529. received 
  24530. .ce
  24531. SABM/SABME or DISC command will be sent only after the data link is set 
  24532. up and if no outstanding SABM/SABME command exists. 
  24533. .ce
  24534. .parag
  24535. .ce
  24536. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  24537. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  24538. .ce
  24539. resend the SABM/SABME command and will restart Timer\ T1. After transmission 
  24540. of the SABM/SABME command N2 times by the DCE, appropriate higher layer 
  24541. recovery action will be initiated. The value of N2 is defined in \(sc\ 
  24542. 2.4.8.4 below. 
  24543. .ce
  24544. .parag
  24545. .ce
  24546. 2.4.4.2
  24547. .ce
  24548. \fIInformation transfer phase\fR 
  24549. .ce
  24550. .parag
  24551. .ce
  24552. After having transmitted the UA response to the SABM/SABME command or having 
  24553. received the UA response to a transmitted SABM/SABME command, the DCE will 
  24554. accept and transmit I and supervisory frames according to the procedures 
  24555. described in \(sc\ 2.4.5 below. 
  24556. .ce
  24557. .parag
  24558. .ce
  24559.  
  24560. .ce
  24561. When receiving the SABM/SABME command while in the information
  24562. .ce
  24563. transfer phase, the DCE will conform to the data link resetting procedure
  24564. .ce
  24565. described in \(sc\ 2.4.7 below.
  24566. .ce
  24567. .parag
  24568. .ce
  24569. 2.4.4.3
  24570. .ce
  24571. \fIData link disconnection\fR 
  24572. .ce
  24573. .parag
  24574. .ce
  24575. The DTE shall initiate a disconnect of the data link by
  24576. .ce
  24577. transmitting a DISC command to the DCE. On correctly receiving a DISC command 
  24578. in the information transfer phase, the DCE will send a UA response and 
  24579. enter 
  24580. .ce
  24581. the disconnected phase. On correctly receiving a DISC command in the
  24582. .ce
  24583. disconnected phase, the DCE will send a DM response and remain in the
  24584. .ce
  24585. disconnected phase. In order to avoid misinterpretation of the DM response
  24586. .ce
  24587. received, it is suggested that the DTE always sends its DISC command with 
  24588. the P\ bit set to\ 1. Otherwise, it is not possible to differentiate a 
  24589. DM response 
  24590. .ce
  24591. intended as an indication that the DCE is already in the disconnected phase
  24592. .ce
  24593. from a DM response that is issued in a separate unsolicited sense as a 
  24594. request for a mode\(hysetting command (as described in \(sc\ 2.4.4.4.2). 
  24595. .ce
  24596. .parag
  24597. .ce
  24598.  
  24599. .ce
  24600. The DCE will initiate a disconnect of the data link by transmitting a DISC 
  24601. command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 below). 
  24602. Upon reception of an UA response from the DTE, the DCE will stop its Timer\ 
  24603. T1 and 
  24604. .ce
  24605. will enter the disconnected phase. Upon reception of a DM response from 
  24606. the DTE as an indication that the DTE was already in the disconnected phase, 
  24607. the DCE 
  24608. .ce
  24609. will stop its Timer\ T1 and will enter the disconnected phase.
  24610. .ce
  24611. .parag
  24612. .ce
  24613. The DCE, having sent the DISC command, will ignore and discard any
  24614. .ce
  24615. frames except an SABM/SABME or DISC command, or a UA or DM response received
  24616. .ce
  24617. from the DTE. The receipt of an SABM/SABME or DISC command from the DTE will
  24618. .ce
  24619. result in a collision situation that is resolved per \(sc\ 2.4.4.5 below.
  24620. .ce
  24621. .parag
  24622. .ce
  24623.  
  24624. .ce
  24625. After the DCE sends the DISC command, if a UA or DM response is not
  24626. .ce
  24627. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  24628. resend the DISC command and will restart Timer\ T1. After transmission 
  24629. of the DISC 
  24630. .ce
  24631. command N2 times by the DCE, appropriate higher layer recovery action will 
  24632. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  24633. .ce
  24634. .parag
  24635. .ce
  24636. 2.4.4.4
  24637. .ce
  24638. \fIDisconnected phase\fR 
  24639. .ce
  24640. .parag
  24641. .ce
  24642. 2.4.4.4.1
  24643. .ce
  24644. After having received a DISC command from the DTE and
  24645. .ce
  24646. returned a UA response to the DTE, or having received the UA response to a
  24647. .ce
  24648. transmitted DISC command, the DCE will enter the disconnected phase.
  24649. .ce
  24650. .parag
  24651. .ce
  24652. In the disconnected phase, the DCE may initiate data link set\(hyup. In 
  24653. the disconnected phase, the DCE will react to the receipt of an SABM/SABME 
  24654. command as described in \(sc\ 2.4.4.1 above and will transmit a DM response 
  24655. in 
  24656. .ce
  24657. answer to a received DISC command. When receiving any other command (defined, 
  24658. or undefined or not implemented) with the P\ bit set to\ 1, the DCE will 
  24659. transmit a DM response with the F\ bit set to\ 1. Other frames received 
  24660. in the 
  24661. .ce
  24662. disconnected phase will be ignored by the DCE.
  24663. .ce
  24664. .parag
  24665. .ce
  24666. 2.4.4.4.2
  24667. .ce
  24668. When the DCE enters the disconnected phase after
  24669. .ce
  24670. detecting error conditions as listed in \(sc\ 2.4.6 below, or after an internal
  24671. .ce
  24672. malfunction, it may indicate this by sending a DM response rather than 
  24673. a DISC command. In these cases, the DCE will transmit a DM response and 
  24674. start its 
  24675. .ce
  24676. Timer\ T1 (see \(sc\ 2.4.8.1 below).
  24677. .ce
  24678. .parag
  24679. .ce
  24680. If Timer T1 runs out before the reception of an SABM/SABME or DISC command 
  24681. from the DTE, the DCE will retransmit the DM response and restart 
  24682. .ce
  24683. Timer\ T1. After transmission of the DM response N2 times, the DCE will 
  24684. remain in the disconnected phase and appropriate recovery actions will 
  24685. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  24686. .ce
  24687. .parag
  24688. .ce
  24689. Alternatively, after an internal malfunction, the DCE may either
  24690. .ce
  24691. initiate a data link resetting procedure (see \(sc\ 2.4.7 below) or disconnect 
  24692. the data link (see \(sc\ 2.4.4.3 above) prior to initiating a data link 
  24693. set\(hyup 
  24694. .ce
  24695. procedure (see \(sc\ 2.4.4.1 above).
  24696. .ce
  24697. .parag
  24698. .ce
  24699. 2.4.4.5
  24700. .ce
  24701. \fICollision of unnumbered commands\fR 
  24702. .ce
  24703. .parag
  24704. .ce
  24705. Collision situations shall be resolved in the following way:
  24706. .ce
  24707. .parag
  24708. .ce
  24709. 2.4.4.5.1
  24710. .ce
  24711. If the sent and received unnumbered commands are the
  24712. .ce
  24713. same, the DCE and the DTE shall each send the UA response at the earliest
  24714. .ce
  24715. possible opportunity. The DCE shall enter the indicated phase either,
  24716. .ce
  24717. .parag
  24718. .ce
  24719.  
  24720. .ce
  24721. 1)
  24722. .ce
  24723. after receiving the UA response,
  24724. .ce
  24725. .parag
  24726. .ce
  24727. 2)
  24728. .ce
  24729. after sending the UA response, or
  24730. .ce
  24731. .parag
  24732. .ce
  24733. 3)
  24734. .ce
  24735. after timing out waiting for the UA response having sent a
  24736. .ce
  24737. UA response.
  24738. .ce
  24739. .parag
  24740. .ce
  24741. In the case of 2) above, the DCE will accept a subsequent UA
  24742. .ce
  24743. response to the mode\(hysetting command it issued without causing an exception
  24744. .ce
  24745. condition if received within the time\(hyout interval.
  24746. .ce
  24747. .parag
  24748. .ce
  24749.  
  24750. .ce
  24751. 2.4.4.5.2
  24752. .ce
  24753. If the sent and received unnumbered commands are
  24754. .ce
  24755. different, the DCE and the DTE shall each enter the disconnected phase and
  24756. .ce
  24757. issue a DM response at the earliest possible opportunity.
  24758. .ce
  24759. .parag
  24760. .ce
  24761. 2.4.4.6
  24762. .ce
  24763. \fICollision of DM response with SABM/SABME or DISC\fR 
  24764. .ce
  24765.  
  24766. .ce
  24767. \fIcommand\fR 
  24768. .ce
  24769. .parag
  24770. .ce
  24771. When a DM response is issued by the DCE or DTE as an unsolicited
  24772. .ce
  24773. response to request the DTE or DCE, respectively, to issue a mode\(hysetting
  24774. .ce
  24775. command as described in \(sc\ 2.4.4.4, a collision between an SABM/SABME 
  24776. or DISC 
  24777. .ce
  24778. command and the unsolicited DM response may occur. In order to avoid
  24779. .ce
  24780. misinterpretation of the DM response received, the DTE always sends its
  24781. .ce
  24782. SABM/SABME or DISC command with the P\ bit set to\ 1.
  24783. .ce
  24784. .parag
  24785. .ce
  24786. 2.4.4.7
  24787. .ce
  24788. \fICollision of DM responses\fR 
  24789. .ce
  24790. .parag
  24791. .ce
  24792. A contention situation may occur when both the DCE and the DTE
  24793. .ce
  24794. issue a DM response to request a mode\(hysetting command. In this case, the DTE
  24795. .ce
  24796. will issue an SABM/SABME command to resolve the contention situation.
  24797. .ce
  24798. .parag
  24799. .ce
  24800.  
  24801. .ce
  24802. 2.4.5
  24803. .ce
  24804. \fILAPB procedures for information transfer\fR 
  24805. .ce
  24806. .parag
  24807. .ce
  24808. The procedures which apply to the transmission of I\ frames in each direction 
  24809. during the information transfer phase are described below. 
  24810. .ce
  24811. .parag
  24812. .ce
  24813. In the following, \*Qnumber one higher\*U is in reference to a
  24814. .ce
  24815. continuously repeated sequence series, i.e., 7 is 1\ higher than 6 and 0 is
  24816. .ce
  24817. 1\ higher than 7 for modulo\ 8 series, and 127 is 1\ higher than 126 and 0 is
  24818. .ce
  24819. 1\ higher than 127 for modulo\ 128 series.
  24820. .ce
  24821. .parag
  24822. .ce
  24823. 2.4.5.1
  24824. .ce
  24825. \fISending I frames\fR 
  24826. .ce
  24827. .parag
  24828. .ce
  24829. When the DCE has an I frame to transmit (i.e. an I frame not
  24830. .ce
  24831. already transmitted, or having to be retransmitted as described in \(sc\ 
  24832. 2.4.5.6 
  24833. .ce
  24834. below), it will transmit it with an N(S) equal to its current send state
  24835. .ce
  24836. variable V(S), and an N(R) equal to its current receive state variable 
  24837. V(R). At the end of the transmission of the I\ frame, the DCE will increment 
  24838. its send 
  24839. .ce
  24840. state variable V(S) by\ 1.
  24841. .ce
  24842. .parag
  24843. .ce
  24844. If Timer T1 is not running at the time of transmission of an I frame, it 
  24845. will be started. 
  24846. .ce
  24847. .parag
  24848. .ce
  24849. If the send state variable V(S) is equal to the last value of N(R)
  24850. .ce
  24851. received plus \fIk\fR 
  24852. .ce
  24853. (where \fIk\fR 
  24854. .ce
  24855. is the maximum number of outstanding I\ frames \(em
  24856. .ce
  24857. see \(sc\ 2.4.8.6 below), the DCE will not transmit any new I\ frames, but may
  24858. .ce
  24859. retransmit an I\ frame as described in \(sc\(sc\ 2.4.5.6 or 2.4.5.9 below.
  24860. .ce
  24861. .parag
  24862. .ce
  24863. When the DCE is in the busy condition, it may still transmit I frames, 
  24864. provided that the DTE is not busy. When the DCE is in the frame rejection 
  24865. .ce
  24866. condition, it will stop transmitting I\ frames.
  24867. .ce
  24868. .parag
  24869. .ce
  24870. 2.4.5.2
  24871. .ce
  24872. \fIReceiving an I frame\fR 
  24873. .ce
  24874. .parag
  24875. .ce
  24876. 2.4.5.2.1
  24877. .ce
  24878. When the DCE is not in a busy condition and receives a valid I\ frame whose 
  24879. send sequence number N(S) is equal to the DCE receive state 
  24880. .ce
  24881. variable V(R), the DCE will accept the information field of this frame,
  24882. .ce
  24883. increment by one its receive state variable V(R), and act as follows:
  24884. .ce
  24885. .parag
  24886. .ce
  24887.  
  24888. .ce
  24889. a)
  24890. .ce
  24891. If the DCE is still not in a busy condition:
  24892. .ce
  24893. .parag
  24894. .ce
  24895. i)
  24896. .ce
  24897. If an I frame is available for transmission by the
  24898. .ce
  24899. DCE, it may act as in \(sc\ 2.4.5.1 above and acknowledge
  24900. .ce
  24901. the received I frame by setting N(R) in the control field
  24902. .ce
  24903. of the next transmitted I\ frame to the value of the DCE
  24904. .ce
  24905. receive state variable V(R). Alternatively, the DCE may
  24906. .ce
  24907. acknowledge the received I\ frame by transmitting an RR
  24908. .ce
  24909. frame with the N(R) equal to the value of the DCE receive
  24910. .ce
  24911. state variable V(R).
  24912. .ce
  24913. .parag
  24914. .ce
  24915. ii)
  24916. .ce
  24917. If no I frame is available for transmission by the
  24918. .ce
  24919. DCE, it will transmit an RR frame with N(R) equal to the
  24920. .ce
  24921. value of the DCE receive state variable V(R).
  24922. .ce
  24923. .parag
  24924. .ce
  24925.  
  24926. .ce
  24927. b)
  24928. .ce
  24929. If the DCE is now in a busy condition, it will transmit an
  24930. .ce
  24931. RNR frame with N(R) equal to the value of the DCE receive
  24932. .ce
  24933. state variable V(R) (see \(sc\ 2.4.5.8).
  24934. .ce
  24935. .parag
  24936. .ce
  24937.  
  24938. .ce
  24939. 2.4.5.2.2
  24940. .ce
  24941. When the DCE is in a busy condition, it may ignore the
  24942. .ce
  24943. information field contained in any received I\ frame.
  24944. .ce
  24945. .parag
  24946. .ce
  24947. 2.4.5.3
  24948. .ce
  24949. \fIReception of invalid frames\fR 
  24950. .ce
  24951. .parag
  24952. .ce
  24953. When the DCE receives an invalid frame (see \(sc\ 2.3.5.3), this frame 
  24954. will be discarded. 
  24955. .ce
  24956. .parag
  24957. .ce
  24958. 2.4.5.4
  24959. .ce
  24960. \fIReception of out\(hyof\(hysequence I frames\fR 
  24961. .ce
  24962. .parag
  24963. .ce
  24964. When the DCE receives a valid I frame whose send sequence number
  24965. .ce
  24966. N(S) is incorrect, i.e.,\ not equal to the current DCE receive state variable
  24967. .ce
  24968. V(R), it will discard the information field of the I\ frame and transmit 
  24969. an REJ frame with the N(R) set to one higher than the N(S) of the last 
  24970. correctly 
  24971. .ce
  24972. received I\ frame. The REJ frame will be a command frame with the P\ bit 
  24973. set to\ 1 if an acknowledged transfer of the retransmission request is 
  24974. required; 
  24975. .ce
  24976. otherwise the REJ frame may be either a command or a response frame. The DCE
  24977. .ce
  24978. will then discard the information field of all I\ frames received until the
  24979. .ce
  24980. expected I\ frame is correctly received. When receiving the expected I\ frame,
  24981. .ce
  24982. the DCE will then acknowledge the I\ frame as described in \(sc\ 2.4.5.2 
  24983. above. The DCE will use the N(R) and P\ bit information in the discarded 
  24984. I\ frames as 
  24985. .ce
  24986. described in \(sc\ 2.3.5.2 above.
  24987. .ce
  24988. .parag
  24989. .ce
  24990. 2.4.5.5
  24991. .ce
  24992. \fIReceiving acknowledgement\fR 
  24993. .ce
  24994. .parag
  24995. .ce
  24996. When correctly receiving an I frame or a supervisory frame (RR, RNR or 
  24997. REJ), even in the busy condition, the DCE will consider the N(R) contained 
  24998. in this frame as an acknowledgement for all I\ frames it has transmitted 
  24999. with an N(S) up to and including the received N(R)\(em1. The DCE will stop 
  25000. Timer\ T1 when it correctly receives an I\ frame or a supervisory frame 
  25001. with the N(R) higher 
  25002. .ce
  25003. than the last received N(R) (actually acknowledging some I\ frames), or 
  25004. an REJ frame with an N(R) equal to the last received N(R). 
  25005. .ce
  25006. .parag
  25007. .ce
  25008.  
  25009. .ce
  25010. If Timer T1 has been stopped by the receipt on an I, RR or RNR frame, and 
  25011. if there are outstanding I\ frames still unacknowledged, the DCE will 
  25012. .ce
  25013. restart Timer\ T1. If Timer\ T1 then runs out, the DCE will follow the 
  25014. recovery procedure (\(sc\ 2.4.5.9 below) with respect to the unacknowledged 
  25015. I\ frames. If 
  25016. .ce
  25017. Timer\ T1 has been stopped by the receipt of an REJ frame, the DCE will 
  25018. follow the retransmission procedures in \(sc\ 2.4.5.6 below. 
  25019. .ce
  25020. .parag
  25021. .ce
  25022. 2.4.5.6
  25023. .ce
  25024. \fIReceiving an REJ frame\fR 
  25025. .ce
  25026. .parag
  25027. .ce
  25028. When receiving an REJ frame, the DCE will set its send state
  25029. .ce
  25030. variable V(S) to the N(R) received in the REJ control field. It will transmit 
  25031. the corresponding I\ frame as soon as it is available or retransmit it 
  25032. in 
  25033. .ce
  25034. accordance with the procedures described in \(sc\ 2.4.5.1 above. (Re)transmission 
  25035. will conform to the following procedure: 
  25036. .ce
  25037. .parag
  25038. .ce
  25039. i)
  25040. .ce
  25041. if the DCE is transmitting a supervisory command or response
  25042. .ce
  25043. when it receives the REJ frame, it will complete that
  25044. .ce
  25045. transmission before commencing transmission of the requested
  25046. .ce
  25047. I\ frame;
  25048. .ce
  25049. .parag
  25050. .ce
  25051.  
  25052. .ce
  25053. ii)
  25054. .ce
  25055. if the DCE is transmitting an unnumbered command or
  25056. .ce
  25057. response when it receives the REJ frame, it will ignore the
  25058. .ce
  25059. request for retransmission;
  25060. .ce
  25061. .parag
  25062. .ce
  25063. iii)
  25064. .ce
  25065. if the DCE is transmitting an I frame when the REJ frame
  25066. .ce
  25067. is received, it may abort the I\ frame and commence transmission
  25068. .ce
  25069. of the requested I\ frame immediately after abortion;
  25070. .ce
  25071. .parag
  25072. .ce
  25073. iv)
  25074. .ce
  25075. if the DCE is not transmitting any frame when the REJ frame
  25076. .ce
  25077. is received, it will commence transmission of the requested
  25078. .ce
  25079. I\ frame immediately.
  25080. .ce
  25081. .parag
  25082. .ce
  25083. In all cases, if other unacknowledged I frames had already been
  25084. .ce
  25085. transmitted following the one indicated in the REJ frame, then those I 
  25086. frames will be retransmitted by the DCE following the retransmission of 
  25087. the requested I\ frame. Other I\ frames not yet transmitted may be transmitted 
  25088. following the 
  25089. .ce
  25090. retransmitted I\ frames.
  25091. .ce
  25092. .parag
  25093. .ce
  25094. If the REJ frame was received from the DTE as a command with the P bit 
  25095. set to\ 1, the DCE will transmit an RR, RNR or REJ response with the F 
  25096. bit set to\ 1 before transmitting or retransmitting the corresponding I\ 
  25097. frame. 
  25098. .ce
  25099. .parag
  25100. .ce
  25101. 2.4.5.7
  25102. .ce
  25103. \fIReceiving an RNR frame\fR 
  25104. .ce
  25105. .parag
  25106. .ce
  25107. After receiving an RNR frame whose N(R) acknowledges all frames
  25108. .ce
  25109. previously transmitted, the DCE will stop Timer\ T1 and may then transmit
  25110. .ce
  25111. an I\ frame, with the P\ bit set to\ 0, whose send sequence number is
  25112. .ce
  25113. equal to the N(R) indicated in the RNR frame, restarting Timer\ T1 as it 
  25114. does. After receiving an RNR frame whose N(R) indicates a previously transmitted 
  25115. .ce
  25116. frame, the DCE will not transmit or retransmit any I\ frame, Timer\ T1 being
  25117. .ce
  25118. already running. In either case, if the Timer\ T1 runs out before receipt 
  25119. of a busy clearance indication, the DCE will follow the procedure described 
  25120. in 
  25121. .ce
  25122. \(sc\ 2.4.5.9\ below. In any case, the DCE will not transmit any other 
  25123. I\ frames 
  25124. .ce
  25125. before receiving an RR or REJ frame, or before the completion of a link
  25126. .ce
  25127. resetting procedure.
  25128. .ce
  25129. .parag
  25130. .ce
  25131. Alternatively, after receiving an RNR frame, the DCE may wait for a
  25132. .ce
  25133. period of time (e.g.,\ the length of the Timer\ T1) and then transmit a
  25134. .ce
  25135. supervisory command frame (RR, RNR or REJ) with the P\ bit set to\ 1, and 
  25136. start Timer\ T1, in order to determine if there is any change in the receive 
  25137. status of the DTE. The DTE shall respond to the P\ bit set to\ 1 with a 
  25138. supervisory 
  25139. .ce
  25140. response frame (RR, RNR or REJ) with the F\ bit set to\ 1 indicating either
  25141. .ce
  25142. continuance of the busy condition (RNR) or clearance of the busy condition 
  25143. (RR or REJ). Upon receipt of the DTE response, Timer\ T1 is stopped. 
  25144. .ce
  25145. .parag
  25146. .ce
  25147.  
  25148. .ce
  25149. 1)
  25150. .ce
  25151. If the response is the RR or REJ response, the busy
  25152. .ce
  25153. condition is cleared and the DCE may transmit I\ frames beginning
  25154. .ce
  25155. with the I\ frame identified by the N(R) in the received response
  25156. .ce
  25157. frame.
  25158. .ce
  25159. .parag
  25160. .ce
  25161. 2)
  25162. .ce
  25163. If the response is the RNR response, the busy condition
  25164. .ce
  25165. still exists, and the DCE will after a period of time (e.g.\ the
  25166. .ce
  25167. length of Timer\ T1) repeat the enquiry of the DTE receive
  25168. .ce
  25169. status.
  25170. .ce
  25171. .parag
  25172. .ce
  25173. If Timer T1 runs out before a status response is received, the
  25174. .ce
  25175. enquiry process above is repeated. If N2 attempts to get a status response 
  25176. fail (i.e.\ Timer\ T1 runs out N2\ times), the DCE will initiate a data 
  25177. link resetting procedure as described in \(sc\ 2.4.7.2\ below or will transmit 
  25178. a DM response to ask the DTE to initiate a data link set\(hyup procedure 
  25179. as described in \(sc\ 2.4.4.1 and enter the disconnected phase. The value 
  25180. of N2 is defined in \(sc\ 2.4.8.4\ below. 
  25181. .ce
  25182. .parag
  25183. .ce
  25184.  
  25185. .ce
  25186. If, at any time during the enquiry process, an unsolicited RR or REJ frame 
  25187. is received from the DTE, it will be considered to be an indication of 
  25188. .ce
  25189. clearance of the busy condition. Should the unsolicited RR or REJ frame be a
  25190. .ce
  25191. command frame with the P bit set to\ 1, the appropriate response frame 
  25192. with the F\ bit set to 1 must be transmitted before the DCE may resume 
  25193. transmission of 
  25194. .ce
  25195. I\ frames. If Timer\ T1 is running, the DCE will wait for the non\(hybusy 
  25196. response with the F bit set to\ 1 or will wait for Timer\ T1 to run out 
  25197. and then either 
  25198. .ce
  25199. may reinitiate the enquiry process in order to realize a successful P/F bit
  25200. .ce
  25201. exchange or may resume transmission of I frames beginning with the I\ frame
  25202. .ce
  25203. identified by the N(R) in the received RR or REJ frame.
  25204. .ce
  25205. .parag
  25206. .ce
  25207. 2.4.5.8
  25208. .ce
  25209. \fIDCE busy condition\fR 
  25210. .ce
  25211. .parag
  25212. .ce
  25213. When the DCE enters a busy condition, it will transmit an RNR frame at 
  25214. the earliest opportunity. The RNR frame will be a command frame with the 
  25215. P bit set to\ 1 if an acknowledged transfer of the busy condition indication 
  25216. is 
  25217. .ce
  25218. required; otherwise the RNR frame may be either a command or a response 
  25219. frame. While in the busy condition, the DCE will accept and process supervisory 
  25220. .ce
  25221. frames, will accept and process the contents of the N(R) fields of I\ frames,
  25222. .ce
  25223. and will return an RNR response with the F bit set to\ 1 if it receives a
  25224. .ce
  25225. supervisory command or I command frame with the P bit set to\ 1. To clear the
  25226. .ce
  25227. busy condition, the DCE will transmit either an REJ frame or an RR frame, with
  25228. .ce
  25229. N(R) set to the current receive state variable V(R), depending on whether or
  25230. .ce
  25231. not it discarded information fields of correctly received I\ frames. The REJ
  25232. .ce
  25233. frame or the RR frame will be a command frame with the P bit set to\ 1 if an
  25234. .ce
  25235. acknowledged transfer of the busy\(hyto\(hynon\(hybusy transition is required, 
  25236. otherwise the REJ frame or the RR frame may be either a command or a response 
  25237. frame. 
  25238. .ce
  25239. .parag
  25240. .ce
  25241.  
  25242. .ce
  25243. 2.4.5.9
  25244. .ce
  25245. \fIWaiting acknowledgement\fR 
  25246. .ce
  25247. .parag
  25248. .ce
  25249. The DCE maintains an internal transmission attempt variable which is set 
  25250. to\ 0 when the DCE sends a UA response, when the DCE receives a UA 
  25251. .ce
  25252. response or an RNR command or response, or when the DCE correctly receives 
  25253. an I\ frame or supervisory frame with the N(R) higher than the last received 
  25254. N(R) (actually acknowledging some outstanding I\ frames). 
  25255. .ce
  25256. .parag
  25257. .ce
  25258. If Timer T1 runs out waiting for the acknowledgement from the DTE for an 
  25259. I\ frame transmitted, the DCE will enter the timer recovery condition, 
  25260. add 
  25261. .ce
  25262. one to its transmission attempt variable and set an internal variable \fIx\fR 
  25263. .ce
  25264. to
  25265. .ce
  25266. the current value of its send state variable V(S). The DCE will then restart
  25267. .ce
  25268. Timer T1, set its send state variable V(S) to the last value of N(R) received 
  25269. from the DTE and retransmit the corresponding I\ frame with the P bit set 
  25270. to\ 1, or transmit an appropriate supervisory command frame (RR, RNR or 
  25271. REJ) with the P\ bit set to\ 1. 
  25272. .ce
  25273. .parag
  25274. .ce
  25275.  
  25276. .ce
  25277. The timer recovery condition is cleared when the DCE receives a valid supervisory 
  25278. frame with the F\ bit\ set to\ 1. 
  25279. .ce
  25280. .parag
  25281. .ce
  25282. If, while in the timer recovery condition, the DCE correctly receives a 
  25283. supervisory frame with the F bit set to\ 1 and with the N(R) within the 
  25284. range from its current send state variable V(S) to \fIx\fR 
  25285. .ce
  25286. included, it will clear the
  25287. .ce
  25288. timer recovery condition (including stopping Timer\ T1) and set its send 
  25289. state variable V(S) to the value of the received N(R), and may then resume 
  25290. with 
  25291. .ce
  25292. I\ frame transmission or retransmission, as appropriate.
  25293. .ce
  25294. .parag
  25295. .ce
  25296. If, while in the timer recovery condition, the DCE correctly receives an 
  25297. I or supervisory frame with the P/F bit set to\ 0 and with a valid N(R) 
  25298. (see \(sc\ 2.3.4.9), it will not clear the timer recovery condition. The 
  25299. value of the 
  25300. .ce
  25301. received N(R) may be used to update the send state variable V(S). However, 
  25302. the DCE may decide to keep the last transmitted I\ frame in store (even 
  25303. if it is 
  25304. .ce
  25305. acknowledged) in order to be able to retransmit it with the P bit set to\ 
  25306. 1 when Timer\ T1 runs out at a later time. 
  25307. .ce
  25308. .parag
  25309. .ce
  25310.  
  25311. .ce
  25312. If the received supervisory frame with the P/F bit set to\ 0 is an REJ 
  25313. frame with a valid N(R), the DCE may either immediately initiate 
  25314. .ce
  25315. (re)transmission from the value of the send state variable V(S), or it may
  25316. .ce
  25317. ignore the request for retransmission and wait until the supervisory frame 
  25318. with the F bit set to\ 1 is received before initiating (re)transmission 
  25319. of frames 
  25320. .ce
  25321. from the value identified in the N(R) field of the supervisory frame with 
  25322. the F\ bit set to\ 1. In the case of immediate retransmission, in order 
  25323. to prevent 
  25324. .ce
  25325. duplicate retransmissions following the clearance of the timer recovery
  25326. .ce
  25327. condition, the DCE shall inhibit retransmission of a specific I\ frame [same
  25328. .ce
  25329. N(R) in the same numbering cycle] if the DCE has retransmitted that I\ 
  25330. frame as the result of a received REJ frame with the P/F bit set to\ 0. 
  25331. .ce
  25332. .parag
  25333. .ce
  25334. If, while in the timer recovery condition, the DCE receives a REJ
  25335. .ce
  25336. command with the P bit set to\ 1, the DCE will respond immediately with an
  25337. .ce
  25338. appropriate supervisory response with the F bit set to\ 1. The DCE may 
  25339. then use the value of the N(R) in the REJ command to update the send state 
  25340. variable 
  25341. .ce
  25342. V(S), and may either immediately begin (re)transmission from the value N(R)
  25343. .ce
  25344. indicated in the REJ frame or ignore the request for retransmission and wait
  25345. .ce
  25346. until the supervisory frame with the F bit set to\ 1 is received before
  25347. .ce
  25348. initiating (re)transmission of I\ frames from the value identified in the 
  25349. N(R) field of the supervisory frame with the F\ bit set to\ 1. In the case 
  25350. of 
  25351. .ce
  25352. immediate retransmission, in order to prevent duplicate retransmissions
  25353. .ce
  25354. following the clearance of the timer recovery condition, the DCE shall 
  25355. inhibit retransmission of a specific I\ frame [same N(R) in the same numbering 
  25356. cycle] 
  25357. .ce
  25358. if the DCE has retransmitted that I\ frame as the result of the received REJ
  25359. .ce
  25360. command with the P\ bit set to\ 1.
  25361. .ce
  25362. .parag
  25363. .ce
  25364. If Timer T1 runs out in the timer recovery condition, and no I or
  25365. .ce
  25366. supervisory frame with the P/F bit set to 0 and with a valid N(R) has been
  25367. .ce
  25368. received, or no REJ command with the P bit set to\ 1 and with a valid N(R) 
  25369. has been received, the DCE will add one to its transmission attempt variable, 
  25370. .ce
  25371. restart Timer\ T1, and either retransmit the I frame sent with the P bit set
  25372. .ce
  25373. to\ 1 or transmit an appropriate supervisory command with the P bit set to\ 1.
  25374. .ce
  25375. .parag
  25376. .ce
  25377.  
  25378. .ce
  25379. If the transmission attempt variable is equal to N2, the DCE will
  25380. .ce
  25381. initiate a data link resetting procedure as described in \(sc\ 2.4.7.2 
  25382. below, or 
  25383. .ce
  25384. will transmit a DM response to ask the DTE to initiate a data link set\(hyup
  25385. .ce
  25386. procedure as described in \(sc\ 2.4.4.1 above and enter the disconnected 
  25387. phase. N2 is a system parameter (see \(sc\ 2.4.8.4 below). 
  25388. .ce
  25389. .parag
  25390. .ce
  25391. \fINote\fR 
  25392. .ce
  25393. \ \(em\ Although the DCE may implement the internal variable \fIx\fR 
  25394. .ce
  25395. ,
  25396. .ce
  25397. other mechanisms do exist that achieve the identical function.
  25398. .ce
  25399. .parag
  25400. .ce
  25401. 2.4.6
  25402. .ce
  25403. \fILAPB conditions for \fR 
  25404. .ce
  25405. \fIdata link resetting or data link\fR 
  25406. .ce
  25407.  
  25408. .ce
  25409. \fIre\(hyinitialization\fR 
  25410. .ce
  25411. \fI(data link set\(hyup)\fR 
  25412. .ce
  25413. .parag
  25414. .ce
  25415. 2.4.6.1
  25416. .ce
  25417. When the DCE receives, during the information transfer phase, a
  25418. .ce
  25419. frame which is not invalid (see \(sc\ 2.3.5.3) with one of the conditions 
  25420. listed in \(sc\ 2.3.4.9 above, the DCE will request the DTE to initiate 
  25421. a data link resetting procedure by transmitting an FRMR response to the 
  25422. DTE as described in 
  25423. .ce
  25424. \(sc\ 2.4.7.3.
  25425. .ce
  25426. .parag
  25427. .ce
  25428. 2.4.6.2
  25429. .ce
  25430. When the DCE receives, during the information transfer phase, an FRMR response 
  25431. from the DTE, the DCE will either initiate the data link 
  25432. .ce
  25433. resetting procedures itself as described in \(sc\ 2.4.7.2 or return a DM 
  25434. response to ask the DTE to initiate the data link set\(hyup (initialization) 
  25435. procedure as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  25436. the DCE will enter 
  25437. .ce
  25438. the disconnected phase as described in \(sc\ 2.4.4.4.2.
  25439. .ce
  25440. .parag
  25441. .ce
  25442. 2.4.6.3
  25443. .ce
  25444. When the DCE receives, during the information transfer phase, a UA response, 
  25445. or an unsolicited response with the F bit set to\ 1, the DCE may 
  25446. .ce
  25447. either initiate the data link resetting procedures itself as described in
  25448. .ce
  25449. \(sc\ 2.4.7.2, or return a DM response to ask the DTE to initiate the data link
  25450. .ce
  25451. set\(hyup (initialization) procedure as described in \(sc\ 2.4.4.1. After 
  25452. transmitting a DM response, the DCE will enter the disconnected phase as 
  25453. described in 
  25454. .ce
  25455. \(sc\ 2.4.4.4.2.
  25456. .ce
  25457. .parag
  25458. .ce
  25459. 2.4.6.4
  25460. .ce
  25461. When the DCE receives, during the information transfer phase, a DM response 
  25462. from the DTE, the DCE will either initiate the data link set\(hyup 
  25463. .ce
  25464. (initialization) procedures itself as described in \(sc\ 2.4.4.1, or return 
  25465. a DM 
  25466. .ce
  25467. response to ask the DTE to initiate the data link set\(hyup (initialization)
  25468. .ce
  25469. procedures as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  25470. the DCE will enter the disconnected phase as described in \(sc\ 2.4.4.4.2. 
  25471. .ce
  25472. .parag
  25473. .ce
  25474.  
  25475. .ce
  25476. 2.4.7
  25477. .ce
  25478. \fILAPB procedure for data link resetting\fR 
  25479. .ce
  25480. .parag
  25481. .ce
  25482. 2.4.7.1
  25483. .ce
  25484. The data link resetting procedure is used to initialize both
  25485. .ce
  25486. directions of information transfer according to the procedure described 
  25487. below. The data link resetting procedure only applies during the information 
  25488. transfer phase. 
  25489. .ce
  25490. .parag
  25491. .ce
  25492. 2.4.7.2
  25493. .ce
  25494. Either the DTE or the DCE may initiate the data link resetting
  25495. .ce
  25496. procedure. The data link resetting procedure indicates a clearance of a DCE
  25497. .ce
  25498. and/or DTE busy condition, if present.
  25499. .ce
  25500. .parag
  25501. .ce
  25502. The DTE shall initiate a data link resetting by transmitting an
  25503. .ce
  25504. SABM/SABME command to the DCE. If, upon correct receipt of the SABM/SABME
  25505. .ce
  25506. command, the DCE determines that it can continue in the information transfer
  25507. .ce
  25508. phase, it will return a UA response to the DTE, will reset its send and 
  25509. receive state variables V(S) and V(R) to zero, and will remain in the information 
  25510. .ce
  25511. transfer phase. If, upon correct receipt of the SABM/SABME command, the DCE
  25512. .ce
  25513. determines that it cannot remain in the information transfer phase, it will
  25514. .ce
  25515. return a DM response as a denial to the resetting request and will enter the
  25516. .ce
  25517. disconnected phase.
  25518. .ce
  25519. .parag
  25520. .ce
  25521. The DCE will initiate a data link resetting by transmitting an
  25522. .ce
  25523. SABM/SABME command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 
  25524. below). Upon reception of a UA response from the DTE, the DCE will reset 
  25525. its send and receive state variables V(S) and V(R) to zero, will stop its 
  25526. Timer\ T1, and will remain in the information transfer phase. Upon reception 
  25527. of a DM response from the DTE as a denial to the data link resetting request, 
  25528. the DCE will stop its Timer\ T1 and will enter the disconnected phase. 
  25529. .ce
  25530. .parag
  25531. .ce
  25532. The DCE, having sent an SABM/SABME command, will ignore and discard
  25533. .ce
  25534. any frames received from the DTE except an SABM/SABME or DISC command, 
  25535. or a UA or DM response. The receipt of an SABM/SABME or DISC command from 
  25536. the DTE will result in a collision situation that is resolved per \(sc\ 
  25537. 2.4.4.5 above. Frames 
  25538. .ce
  25539. other than the UA or DM response sent in response to a received SABM/SABME 
  25540. or DISC command will be sent only after the data link is reset and if no 
  25541. .ce
  25542. outstanding SABM/SABME command exists.
  25543. .ce
  25544. .parag
  25545. .ce
  25546.  
  25547. .ce
  25548. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  25549. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  25550. .ce
  25551. resend the SABM/SABME command and will restart Timer\ T1. After N2 attempts 
  25552. to reset the data link, the DCE will initiate appropriate higher layer 
  25553. recovery 
  25554. .ce
  25555. action and will enter the disconnected phase. The value of N2 is defined in
  25556. .ce
  25557. \(sc\ 2.4.8.4 below.
  25558. .ce
  25559. .parag
  25560. .ce
  25561. 2.4.7.3
  25562. .ce
  25563. The DCE may ask the DTE to reset the data link by transmitting an FRMR 
  25564. response (see \(sc\ 2.4.6.1 above). After transmitting an FRMR response, 
  25565. .ce
  25566. the DCE will enter the frame rejection condition.
  25567. .ce
  25568. .parag
  25569. .ce
  25570. The frame rejection condition is cleared when the DCE receives an SABM/SABME 
  25571. command, a DISC command, a FRMR response, or a DM response; or if 
  25572. .ce
  25573. the DCE transmits an SABM/SABME command, a DISC command, or a DM response.
  25574. .ce
  25575. Other commands received while in the frame rejection condition will cause 
  25576. the DCE to retransmit the FRMR response with the same information field 
  25577. as 
  25578. .ce
  25579. originally transmitted.
  25580. .ce
  25581. .parag
  25582. .ce
  25583. The DCE may start Timer\ T1 on transmission of the FRMR response. If
  25584. .ce
  25585. Timer\ T1 runs out before the frame rejection condition is cleared, the 
  25586. DCE may retransmit the FRMR response, and restart T1. After N2 attempts 
  25587. (time outs) to get the DTE to reset the data link, the DCE may reset the 
  25588. data link itself as described in \(sc\ 2.4.7.2 above. The value of N2 is 
  25589. defined in \(sc\ 2.4.8.4 below. 
  25590. .ce
  25591. .parag
  25592. .ce
  25593.  
  25594. .ce
  25595. In the frame rejection condition, I frames and supervisory frames will 
  25596. not be transmitted by the DCE. Also, received I frames and supervisory 
  25597. frames will be discarded by the DCE except for the observance of a P bit 
  25598. set to\ 1. 
  25599. .ce
  25600. When an additional FRMR response must be transmitted by the DCE as a result 
  25601. of the receipt of a P\ bit set to 1 while Timer\ T1 is running, Timer\ 
  25602. T1 will 
  25603. .ce
  25604. continue to run. Upon reception of an FRMR response (even during a frame
  25605. .ce
  25606. rejection condition), the DCE will initiate a resetting procedure by
  25607. .ce
  25608. transmitting an SABM/SABME command as described in \(sc\ 2.4.7.2 above, or will
  25609. .ce
  25610. transmit a DM response to ask the DTE to initiate the data link set\(hyup
  25611. .ce
  25612. procedure as described in \(sc\ 2.4.4.1 and enter the disconnected phase.
  25613. .ce
  25614. .parag
  25615. .ce
  25616. 2.4.8
  25617. .ce
  25618. \fIList of \fR 
  25619. .ce
  25620. \fILAPB system parameters\fR 
  25621. .ce
  25622. .parag
  25623. .ce
  25624. The DCE and DTE system parameters are as follows:
  25625. .ce
  25626. .parag
  25627. .ce
  25628.  
  25629. .ce
  25630. 2.4.8.1
  25631. .ce
  25632. \fITimer\fR 
  25633. .ce
  25634. \fIT1\fR 
  25635. .ce
  25636. .parag
  25637. .ce
  25638. The value of the DTE Timer T1 system parameter may be different
  25639. .ce
  25640. than the value of the DCE Timer T1 system parameter. These values shall 
  25641. be made known to both the DTE and the DCE, and agreed to for a period of 
  25642. time by both the DTE and the DCE. 
  25643. .ce
  25644. .parag
  25645. .ce
  25646. The period of Timer T1, at the end of which retransmission of a frame may 
  25647. be initiated (see \(sc\ 2.4.4 and \(sc\ 2.4.5 above for the DCE), shall 
  25648. take into account whether T1 is started at the beginning or the end of 
  25649. the transmission of a frame. 
  25650. .ce
  25651. .parag
  25652. .ce
  25653. The proper operation of the procedure requires that the transmitter's (DCE 
  25654. or DTE) Timer\ T1 be greater than the maximum time between transmission 
  25655. of a frame (SABM/SABME, DISC, I\ or supervisory command, or DM or FRMR 
  25656. response) 
  25657. .ce
  25658. and the reception of the corresponding frame returned as an answer to that
  25659. .ce
  25660. frame (UA, DM or acknowledging frame). Therefore, the receiver (DCE or DTE)
  25661. .ce
  25662. should not delay the response or acknowledging frame returned to one of the
  25663. .ce
  25664. above frames by more than a value\ T2, where T2 is a system parameter (see
  25665. .ce
  25666. \(sc\ 2.4.8.2).
  25667. .ce
  25668. .parag
  25669. .ce
  25670.  
  25671. .ce
  25672. The DCE will not delay the response or acknowledging frame returned to 
  25673. one of the above DTE frames by more than a period\ T2. 
  25674. .ce
  25675. .parag
  25676. .ce
  25677. 2.4.8.2
  25678. .ce
  25679. \fIParameter T2\fR 
  25680. .ce
  25681. .parag
  25682. .ce
  25683. The value of the DTE parameter T2 may be different than the value of the 
  25684. DCE parameter T2. These values shall be made known to both the DTE and 
  25685. the DCE, and agreed to for a period of time by both the DTE and the DCE. 
  25686. .ce
  25687. .parag
  25688. .ce
  25689.  
  25690. .ce
  25691. The period of parameter T2 shall indicate the amount of time
  25692. .ce
  25693. available at the DCE or DTE before the acknowledging frame must be initiated 
  25694. in order to ensure its receipt by the DTE or DCE, respectively, prior to 
  25695. Timer\ T1 running out at the DTE or DCE (parameter\ T2\ <\ Timer\ T1). 
  25696. .ce
  25697. .parag
  25698. .ce
  25699. \fINote\fR 
  25700. .ce
  25701. \ \(em\ The period of parameter T2 shall take into account the
  25702. .ce
  25703. following timing factors: the transmission time of the acknowledging frame, 
  25704. the propagation time over the access data link, the stated processing times 
  25705. at the DCE and the DTE, and the time to complete the transmission of the 
  25706. frame(s) in the DCE or DTE transmit queue that are neither displaceable 
  25707. or modifiable in an orderly manner. 
  25708. .ce
  25709. .parag
  25710. .ce
  25711.  
  25712. .ce
  25713. Given a value for Timer T1 for the DTE or DCE, the value of parameter T2 
  25714. at the DCE or DTE, respectively, must be no larger than T1 minus\ 2 times 
  25715. the propagation time over the access data link, minus the frame processing 
  25716. time at the DCE, minus the frame processing time at the DTE, and minus 
  25717. the transmission time of the acknowledging frame by the DCE or DTE, respectively. 
  25718. .ce
  25719. .parag
  25720. .ce
  25721.  
  25722. .ce
  25723. 2.4.8.3
  25724. .ce
  25725. \fITimer T3\fR 
  25726. .ce
  25727. .parag
  25728. .ce
  25729. The DCE shall support a Timer T3 system parameter, the value of
  25730. .ce
  25731. which shall be made known to the DTE.
  25732. .ce
  25733. .parag
  25734. .ce
  25735. The period of Timer T3, at the end of which an indication of an
  25736. .ce
  25737. observed excessively long idle channel state condition is passed to the 
  25738. Packet Layer, shall be sufficiently greater than the period of the DCE 
  25739. Timer T1 
  25740. .ce
  25741. (i.e.\ T3\ >\ T1) so that the expiration of T3 provides the desired level of
  25742. .ce
  25743. assurance that the data link channel is in a non\(hyactive, non\(hyoperational 
  25744. state, and is in need of data link set\(hyup before normal data link operation 
  25745. can 
  25746. .ce
  25747. resume.
  25748. .ce
  25749. .parag
  25750. .ce
  25751. 2.4.8.4
  25752. .ce
  25753. \fIMaximum number of attempts\fR 
  25754. .ce
  25755. \fIto complete a\fR 
  25756. .ce
  25757.  
  25758. .ce
  25759. \fItransmission N2\fR 
  25760. .ce
  25761. .parag
  25762. .ce
  25763.  
  25764. .ce
  25765. The value of the DTE N2 system parameter may be different than the value 
  25766. of the DCE N2 system parameter. These values shall be made known to both 
  25767. the DTE and the DCE, and agreed to for a period of time by both the DTE 
  25768. and the DCE. 
  25769. .ce
  25770. .parag
  25771. .ce
  25772. The value of N2 shall indicate the maximum number of attempts made by the 
  25773. DCE or DTE to complete the successful transmission of a frame to the DTE 
  25774. or DCE, respectively. 
  25775. .ce
  25776. .parag
  25777. .ce
  25778. 2.4.8.5
  25779. .ce
  25780. \fIMaximum number of bits in an I frame N1\fR 
  25781. .ce
  25782. .parag
  25783. .ce
  25784. The value of the DTE N1 system parameter may be different than the value 
  25785. of the DCE N1 system parameter. These values shall be made known to both 
  25786. the DTE and the DCE. 
  25787. .ce
  25788. .parag
  25789. .ce
  25790. The values of N1 shall indicate the maximum number of bits in an
  25791. .ce
  25792. I\ frame (excluding flags and 0\ bits inserted for transparency) that the 
  25793. DCE or DTE is willing to accept from the DTE or DCE, respectively. 
  25794. .ce
  25795. .parag
  25796. .ce
  25797. In order to allow for universal operation, a DTE should support a
  25798. .ce
  25799. value of DTE N1 which is not less than 1080\ bits (135\ octets). DTEs should 
  25800. be aware that the network may transmit longer packets (see \(sc\ 5.2), 
  25801. that may result in a data link layer problem. 
  25802. .ce
  25803. .parag
  25804. .ce
  25805.  
  25806. .ce
  25807. All networks shall offer to a DTE which requires it, a value of DCE N1 
  25808. which is greater than or equal to 2072\ bits (259\ octets) plus the length 
  25809. of the address, control and FCS fields at the DTE/DCE interface, and greater 
  25810. than or equal to the maximum length of the data packets which may cross 
  25811. the DTE/DCE 
  25812. .ce
  25813. interface plus the length of the address, control and FCS fields at the 
  25814. DTE/DCE interface. 
  25815. .ce
  25816. .parag
  25817. .ce
  25818. Appendix II provides a description of how the values stated above are  derived.
  25819. .ce
  25820. .parag
  25821. .ce
  25822. 2.4.8.6
  25823. .ce
  25824. \fIMaximum number of \fR 
  25825. .ce
  25826. \fIoutstanding I frames k\fR 
  25827. .ce
  25828. .parag
  25829. .ce
  25830. The value of the DTE k system parameter shall be the same as the
  25831. .ce
  25832. value of the DCE k system parameter. This value shall be agreed to for a
  25833. .ce
  25834. period of time by both the DTE and the DCE.
  25835. .ce
  25836. .parag
  25837. .ce
  25838. The value of k shall indicate the maximum number of sequentially
  25839. .ce
  25840. numbered I\ frames that the DTE or DCE may have outstanding
  25841. .ce
  25842. (i.e.\ unacknowledged) at any given time. The value of k shall never exceed
  25843. .ce
  25844. seven for modulo\ 8 operation, or one hundred and twenty\(hyseven for modulo\ 
  25845. 128 
  25846. .ce
  25847. operation. All networks (DCEs) shall support a value of seven. Other values 
  25848. of k (less than and greater than seven) may also be supported by networks 
  25849. .ce
  25850. (DCEs).
  25851. .ce
  25852. .parag
  25853. .ce
  25854. .line
  25855. .ce
  25856. \fBMONTAGE : \(sc 2.5 de cette Recommandation sur le reste de cette page\fR 
  25857. .ce
  25858. .parag
  25859. .ce
  25860.  
  25861. .ce
  25862. .line
  25863. .ad r
  25864. \fBTable 5/X.25 [T5.25], p.\fR 
  25865. .sp 1P
  25866. .RT
  25867. .ad b
  25868. .RT
  25869. .LP
  25870. .bp
  25871. .ce
  25872. .line
  25873. .ce
  25874. \fBTable 6/X.25 [T6.25], p.\fR 
  25875. .ce
  25876. 2.3.4.2
  25877. .ce
  25878. \fIReceive ready (RR)\fR 
  25879. .ce
  25880. \fI command and response\fR 
  25881. .ce
  25882. .parag
  25883. .ce
  25884. The receive ready (RR) supervisory frame is used by the DCE
  25885. .ce
  25886. or DTE to:
  25887. .ce
  25888. .parag
  25889. .ce
  25890.  
  25891. .ce
  25892. 1)
  25893. .ce
  25894. indicate it is ready to receive an I frame; and
  25895. .ce
  25896. .parag
  25897. .ce
  25898. 2)
  25899. .ce
  25900. acknowledge previously received I frames numbered up to and
  25901. .ce
  25902. including N(R)\ \(em\ 1.
  25903. .ce
  25904. .parag
  25905. .ce
  25906. An RR frame may be used to indicate the clearance of a busy
  25907. .ce
  25908. condition that was reported by the earlier transmission of an RNR frame 
  25909. by that same station (DCE or\ DTE). In addition to indicating the DCE or 
  25910. DTE status, the RR command with the P\ bit set to\ 1 may be used by the 
  25911. DCE or DTE to ask for the status of the DTE or DCE, respectively. 
  25912. .ce
  25913. .parag
  25914. .ce
  25915. 2.3.4.3
  25916. .ce
  25917. \fIReceive not ready (RNR) command and response\fR 
  25918. .ce
  25919. .parag
  25920. .ce
  25921. The receive not ready (RNR) supervisory frame is used by the DCE or DTE 
  25922. to indicate a busy condition; i.e.\ temporary inability to accept 
  25923. .ce
  25924. additional incoming I\ frames. I\ frames numbered up to and including N(R)\ 
  25925. \(em\ 1 
  25926. .ce
  25927. are acknowledged. I\ frame N(R) and any subsequent I\ frames received, if any,
  25928. .ce
  25929. are not acknowledged; the acceptance status of these I\ frames will be 
  25930. indicated in subsequent exchanges. 
  25931. .ce
  25932. .parag
  25933. .ce
  25934. In addition to indicating the DCE or DTE status, the RNR command with the 
  25935. P bit set to\ 1 may be used by an DCE or DTE to ask for the status of the 
  25936. .ce
  25937. DTE or DCE, respectively.
  25938. .ce
  25939. .parag
  25940. .ce
  25941. 2.3.4.4
  25942. .ce
  25943. \fIReject (REJ) command and response\fR 
  25944. .ce
  25945. .parag
  25946. .ce
  25947. The reject (REJ) supervisory frame is used by the DCE or DTE to request 
  25948. transmission of I\ frames starting with the frame numbered N(R). 
  25949. .ce
  25950. I\ frames numbered N(R)\ \(em\ 1 and below are acknowledged. Additional 
  25951. I\ frames 
  25952. .ce
  25953. pending initial transmission may be transmitted following the retransmitted
  25954. .ce
  25955. I\ frame(s).
  25956. .ce
  25957. .parag
  25958. .ce
  25959.  
  25960. .ce
  25961. Only one REJ exception condition for a given direction of information transfer 
  25962. may be established at any time. The REJ exception condition is cleared 
  25963. (reset) upon the receipt of an I\ frame with an N(S) equal to the N(R) 
  25964. of the 
  25965. .ce
  25966. REJ\ frame.
  25967. .ce
  25968. .parag
  25969. .ce
  25970. An REJ frame may be used to indicate the clearance of a busy condition 
  25971. that was reported by the earlier transmission of an RNR frame by that same 
  25972. .ce
  25973. station (DCE or\ DTE). In addition to indicating the DCE or DTE status, the
  25974. .ce
  25975. REJ\ command with the P bit set to\ 1 may be used by the DCE or\ DTE to ask for
  25976. .ce
  25977. the status of the DTE or\ DCE, respectively.
  25978. .ce
  25979. .parag
  25980. .ce
  25981. \fR 
  25982. .ce
  25983. 2.3.4.5
  25984. .ce
  25985. \fISet asynchronous balanced mode (SABM)\fR 
  25986. .ce
  25987. \fIcommand/\fR 
  25988. .ce
  25989. \fISet asynchronous balanced mode extended (SABME)\fR 
  25990. .ce
  25991.  
  25992. .ce
  25993. \fIcommand (subscription time option)\fR 
  25994. .ce
  25995. .parag
  25996. .ce
  25997.  
  25998. .ce
  25999. The SABM unnumbered command is used to place the addressed DCE or DTE in 
  26000. an asynchronous balanced mode (ABM) information transfer phase where all 
  26001. command/response control fields will be one\ octet in length. 
  26002. .ce
  26003. .parag
  26004. .ce
  26005. The SABME unnumbered command is used to place the addressed DCE or DTE 
  26006. in an asynchronous balanced mode\ (ABM) information transfer phase where 
  26007. .ce
  26008. numbered command/response control fields will be two octets in length, and
  26009. .ce
  26010. unnumbered command/response control fields will be one octet in length.
  26011. .ce
  26012. .parag
  26013. .ce
  26014.  
  26015. .ce
  26016. No information field is permitted with the SABM or SABME command. The transmission 
  26017. of a SABM/SABME command indicates the clearance of a busy 
  26018. .ce
  26019. condition that was reported by the earlier trans
  26020. .ce
  26021. mission\ of an RNR\ frame by   that
  26022. .ce
  26023. same station (DCE or\ DTE). The DCE or DTE confirms acceptance of SABM/SABME
  26024. .ce
  26025. [modulo\ 8 (basic) operation/modulo\ 128 (extended) operation] command by the
  26026. .ce
  26027. transmission, at the first opportunity, of a UA\ response. Upon acceptance of
  26028. .ce
  26029. this command, the DCE or DTE send state variable\ V(S) and receive state
  26030. .ce
  26031. variable V(R) are set to\ 0.
  26032. .ce
  26033. .parag
  26034. .ce
  26035. Previously transmitted I\ frames that are unacknowledged when this
  26036. .ce
  26037. command is actioned remain unac
  26038. .ce
  26039. knowledged.\ It is the responsibility of a
  26040. .ce
  26041. higher layer (e.g.\ Packet Layer or MLP) to recover from the possible loss of
  26042. .ce
  26043. the contents (e.g.\ packets) of such I\ frames.
  26044. .ce
  26045. .parag
  26046. .ce
  26047. \fINote\fR 
  26048. .ce
  26049. \ \(em\ The mode of operation of a data link [basic (modulo 8) or
  26050. .ce
  26051. extended (modulo\ 128)] is determined at subscription time and is only 
  26052. changed by going through a new subscription process. 
  26053. .ce
  26054. .parag
  26055. .ce
  26056. 2.3.4.6
  26057. .ce
  26058. \fIDisconnect (DISC)\fR 
  26059. .ce
  26060. \fI command\fR 
  26061. .ce
  26062. .parag
  26063. .ce
  26064. The DISC unnumbered command is used to terminate the mode
  26065. .ce
  26066. previously set. It is used to inform the DCE or DTE receiving the DISC 
  26067. command that the DTE or DCE sending the DISC command is suspending operation. 
  26068. No 
  26069. .ce
  26070. information field is permitted with the DISC command. Prior to actioning the
  26071. .ce
  26072. DISC command, the DCE or DTE receiving the DISC command confirms the acceptance 
  26073. of the DISC command by the transmission of a UA response. The DTE or DCE 
  26074. .ce
  26075. sending the DISC command enters the disconnected phase when it receives the
  26076. .ce
  26077. acknowledging UA response.
  26078. .ce
  26079. .parag
  26080. .ce
  26081. Previously transmitted I frames that are unacknowledged when this
  26082. .ce
  26083. command is actioned remain unacknowledged. It is the responsibility of 
  26084. a higher layer (e.g.\ Packet Layer or MLP) to recover from the possible 
  26085. loss of the 
  26086. .ce
  26087. contents (e.g.,\ packets) of such I frames.
  26088. .ce
  26089. .parag
  26090. .ce
  26091. 2.3.4.7
  26092. .ce
  26093. \fIUnnumbered acknowledgement (UA)\fR 
  26094. .ce
  26095. \fI response\fR 
  26096. .ce
  26097. .parag
  26098. .ce
  26099. The UA unnumbered response is used by the DCE or DTE to acknowledge the 
  26100. receipt and acceptance of the mode\(hysetting commands. Received mode\(hysetting 
  26101. commands are not actioned until the UA response is transmitted. The 
  26102. .ce
  26103. transmission of a UA response indicates the clearance of a busy condition 
  26104. that was reported by the earlier transmission of an RNR frame by that same 
  26105. station (DCE or DTE). No information field is permitted with the UA response. 
  26106. .ce
  26107. .parag
  26108. .ce
  26109.  
  26110. .ce
  26111. 2.3.4.8
  26112. .ce
  26113. \fIDisconnected mode (DM)\fR 
  26114. .ce
  26115. \fI response\fR 
  26116. .ce
  26117. .parag
  26118. .ce
  26119. The DM unnumbered response is used to report a status where the DCE or 
  26120. DTE is logically disconnected from the data link, and is in the disconnected 
  26121. phase. The DM response may be sent to indicate that the DCE or DTE has 
  26122. entered the disconnected phase without benefit of having received a DISC 
  26123. command, or, if sent in response to the reception of a mode setting command, 
  26124. is sent to 
  26125. .ce
  26126. inform the DTE or DCE that the DCE or DTE, respectively, is still in the
  26127. .ce
  26128. disconnected phase and cannot execute the set mode command. No information
  26129. .ce
  26130. field is permitted with the DM response.
  26131. .ce
  26132. .parag
  26133. .ce
  26134. A DCE or DTE in a disconnected phase will monitor received commands
  26135. .ce
  26136. and will react to an SABM/SABME command as outlined in \(sc\ 2.4.4 below, 
  26137. and will respond with a DM response with the F bit set to\ 1 to any other 
  26138. command 
  26139. .ce
  26140. received with the P\ bit set to\ 1.
  26141. .ce
  26142. .parag
  26143. .ce
  26144. 2.3.4.9
  26145. .ce
  26146. \fIFrame reject (FRMR)\fR 
  26147. .ce
  26148. \fI response\fR 
  26149. .ce
  26150. .parag
  26151. .ce
  26152. The FRMR unnumbered response is used by the DCE or DTE to report an error 
  26153. condition not recoverable by retransmission of the identical frame; 
  26154. .ce
  26155. i.e.\ at least one of the following conditions, which results from the 
  26156. receipt of a valid frame: 
  26157. .ce
  26158. .parag
  26159. .ce
  26160. 1)
  26161. .ce
  26162. the receipt of a command or response control field that is
  26163. .ce
  26164. undefined or not implemented;
  26165. .ce
  26166. .parag
  26167. .ce
  26168. 2)
  26169. .ce
  26170. the receipt of an I frame with an information field which
  26171. .ce
  26172. exceeds the maximum established length;
  26173. .ce
  26174. .parag
  26175. .ce
  26176. 3)
  26177. .ce
  26178. the receipt of an invalid N(R); or
  26179. .ce
  26180. .parag
  26181. .ce
  26182. 4)
  26183. .ce
  26184. the receipt of a frame with an information field which is
  26185. .ce
  26186. not permitted or the receipt of a supervisory or unnumbered
  26187. .ce
  26188. frame with incorrect length.
  26189. .ce
  26190. .parag
  26191. .ce
  26192. An undefined or not implemented control field is any of the
  26193. .ce
  26194. control field encodings that are not identified in Tables\ 5/X.25 or\ 6/X.25.
  26195. .ce
  26196. .parag
  26197. .ce
  26198.  
  26199. .ce
  26200. A valid N(R) must be within the range from the lowest send sequence
  26201. .ce
  26202. number N(S) of the still unacknowledged frame(s) to the current DCE send 
  26203. state variable inclusive (or to the current internal variable \fIx\fR 
  26204. .ce
  26205. if the DCE is in
  26206. .ce
  26207. the timer recovery condition as described in \(sc\ 2.4.5.9).
  26208. .ce
  26209. .parag
  26210. .ce
  26211.  
  26212. .ce
  26213. An information field which immediately follows the control field, and consists 
  26214. of\ 3 or 5\ octets [modulo\ 8 (basic) operation or modulo\ 128 (extended) 
  26215. operation, respectively], is returned with this response and provides the 
  26216. .ce
  26217. reason for the FRMR response. These formats are given in Tables\ 7/X.25
  26218. .ce
  26219. and\ 8/X.25.
  26220. .ce
  26221. .parag
  26222. .ce
  26223. 2.3.5
  26224. .ce
  26225. \fIException condition reporting and recovery\fR 
  26226. .ce
  26227. .parag
  26228. .ce
  26229. The error recovery procedures which are available to effect
  26230. .ce
  26231. recovery following the detection/occurrence of an 
  26232. .ce
  26233. exception condition
  26234. .ce
  26235.  at the Data Link Layer are described below. Exception conditions described 
  26236. are those situations which may occur as the result of transmission errors, 
  26237. DCE or DTE malfunction, or operational situations. 
  26238. .ce
  26239. .parag
  26240. .ce
  26241. 2.3.5.1
  26242. .ce
  26243. \fIBusy condition\fR 
  26244. .ce
  26245. .parag
  26246. .ce
  26247. The busy condition results when the DCE or DTE is temporarily
  26248. .ce
  26249. unable to continue to receive I frames due to internal constraints,
  26250. .ce
  26251. e.g.\ receive buffering limitations. In this case an RNR frame is transmitted
  26252. .ce
  26253. from the busy DCE or DTE. I\ frames pending transmission may be transmitted 
  26254. from the busy DCE or DTE prior to or following the RNR\ frame. 
  26255. .ce
  26256. .parag
  26257. .ce
  26258. An indication that the busy condition has cleared is communicated by the 
  26259. transmission of a UA (only in response to a SABM/SABME command), RR, REJ 
  26260. or SABM/SABME (modulo\ 8/modulo\ 128) frame. 
  26261. .ce
  26262. .parag
  26263. .ce
  26264. .line
  26265. .ce
  26266. \fBTable 7/X.25 [T7.25], p.\fR 
  26267. .ce
  26268. .line
  26269. .ce
  26270. \fBTable 8/X.25 [T8.25], p.\fR 
  26271. .ce
  26272. 2.3.5.2
  26273. .ce
  26274. \fIN(S) sequence error condition\fR 
  26275. .ce
  26276. .parag
  26277. .ce
  26278. The information field of all I frames received whose N(S) does not equal 
  26279. the receive state variable V(R) will be discarded. 
  26280. .ce
  26281. .parag
  26282. .ce
  26283. An N(S) sequence error exception condition occurs in the receiver when 
  26284. an I\ frame received contains an N(S) which is not equal to the receive 
  26285. state 
  26286. .ce
  26287. variable V(R) at the receiver. The receiver does not acknowledge (increment 
  26288. its receive state variable) the I\ frame causing the sequence error, or 
  26289. any I\ frame which may follow, until an I\ frame with the correct N(S) 
  26290. is received. 
  26291. .ce
  26292. .parag
  26293. .ce
  26294.  
  26295. .ce
  26296. A DCE or DTE which receives one or more valid I frames having sequence 
  26297. errors or subsequent supervisory frames (RR, RNR and REJ) shall accept 
  26298. the 
  26299. .ce
  26300. control information contained in the N(R) field and the P or F bit to perform 
  26301. data link control functions; e.g.\ to receive acknowledgement of previously 
  26302. .ce
  26303. transmitted I\ frames and to cause the DCE or DTE to respond (P bit set to 1).
  26304. .ce
  26305. .parag
  26306. .ce
  26307.  
  26308. .ce
  26309. The means specified in \(sc\(sc\ 2.3.5.2.1 and 2.3.5.2.2 shall be available 
  26310. for initiating the retransmission of lost or errored I\ frames following 
  26311. the 
  26312. .ce
  26313. occurrence of an N(S) sequence error condition.
  26314. .ce
  26315. .parag
  26316. .ce
  26317. 2.3.5.2.1
  26318. .ce
  26319. \fIREJ recovery\fR 
  26320. .ce
  26321. .parag
  26322. .ce
  26323. The REJ frame is used by a receiving DCE or DTE to initiate a
  26324. .ce
  26325. recovery (retransmission) following the detection of an N(S) sequence error.
  26326. .ce
  26327. .parag
  26328. .ce
  26329.  
  26330. .ce
  26331. With respect to each direction of transmission on the data link, only one 
  26332. \*Qsent REJ\*U exception condition from a DCE or DTE, to a DTE or DCE, 
  26333. is 
  26334. .ce
  26335. established at a time. A \*Qsent REJ\*U exception condition is cleared when the
  26336. .ce
  26337. requested I\ frame is received.
  26338. .ce
  26339. .parag
  26340. .ce
  26341.  
  26342. .ce
  26343. A DCE or DTE receiving a REJ frame initiates sequential
  26344. .ce
  26345. (re\(hy)transmission of I\ frames starting with the I\ frame indicated 
  26346. by the N(R) contained in the REJ frame. The retransmitted frames may contain 
  26347. an N(R) and a P bit that are updated from, and therefore different from, 
  26348. the ones contained in the originally transmitted I\ frames. 
  26349. .ce
  26350. .parag
  26351. .ce
  26352. 2.3.5.2.2
  26353. .ce
  26354. \fITime\(hyout recovery\fR 
  26355. .ce
  26356. .parag
  26357. .ce
  26358. If a DCE or DTE, due to a transmission error, does not receive (or receives 
  26359. and discards) a single I\ frame or the last I\ frame(s) in a sequence of 
  26360. I\ frames, it will not detect an N(S) sequence error condition and, therefore, 
  26361. will not transmit a REJ frame. The DTE or DCE which transmitted the 
  26362. .ce
  26363. unacknowledged I\ frame(s) shall, following the completion of a system 
  26364. specified time\(hyout period (see \(sc\(sc\ 2.4.5.1 and 2.4.5.9 below), 
  26365. take appropriate recovery action to determine at which I\ frame retransmission 
  26366. must begin. The 
  26367. .ce
  26368. retransmitted frame(s) may contain an N(R) and a P bit that is updated from,
  26369. .ce
  26370. and therefore different from, the ones contained in the originally transmitted 
  26371. frame(s). 
  26372. .ce
  26373. .parag
  26374. .ce
  26375. 2.3.5.3
  26376. .ce
  26377. \fIInvalid frame\fR 
  26378. .ce
  26379. \fI condition\fR 
  26380. .ce
  26381. .parag
  26382. .ce
  26383. Any frame which is invalid will be discarded, and no action is
  26384. .ce
  26385. taken as the result of that frame. An invalid frame is defined as one
  26386. .ce
  26387. which:
  26388. .ce
  26389. .parag
  26390. .ce
  26391. a)
  26392. .ce
  26393. is not properly bounded by two flags;
  26394. .ce
  26395. .parag
  26396. .ce
  26397. b)
  26398. .ce
  26399. in basic (modulo 8) operation, contains fewer than 32 bits
  26400. .ce
  26401. between flags; in extended (modulo\ 128) operation, contains
  26402. .ce
  26403. fewer than 40\ bits between flags of frames that contain sequence
  26404. .ce
  26405. numbers or 32\ bits between flags of frames that do not contain
  26406. .ce
  26407. sequence numbers;
  26408. .ce
  26409. .parag
  26410. .ce
  26411. c)
  26412. .ce
  26413. contains a Frame Check Sequence (FCS) error; or
  26414. .ce
  26415. .parag
  26416. .ce
  26417. d)
  26418. .ce
  26419. contains an address other than A or B (for single link
  26420. .ce
  26421. operation) or other than C or D (for multilink operation).
  26422. .ce
  26423. .parag
  26424. .ce
  26425.  
  26426. .ce
  26427. For those networks that are octet aligned, a detection of
  26428. .ce
  26429. non\(hyoctet alignment may be made at the Data Link Layer by adding a frame
  26430. .ce
  26431. validity check that requires the number of bits between the opening flag and
  26432. .ce
  26433. the closing flag, excluding bits inserted for transparency, to be an integral 
  26434. number of octets in length, or the frame is considered invalid. 
  26435. .ce
  26436. .parag
  26437. .ce
  26438. 2.3.5.4
  26439. .ce
  26440. \fIFrame rejection\fR 
  26441. .ce
  26442. \fI condition\fR 
  26443. .ce
  26444. .parag
  26445. .ce
  26446. A frame rejection condition is established upon the receipt of an error\(hyfree 
  26447. frame with one of the conditions listed in \(sc\ 2.3.4.9 above. 
  26448. .ce
  26449. .parag
  26450. .ce
  26451.  
  26452. .ce
  26453. At the DCE or DTE, this frame rejection exception condition is
  26454. .ce
  26455. reported by an FRMR response for appropriate DTE or DCE action, respectively. 
  26456. Once a DCE has established such an exception condition, no additional I\ 
  26457. frames are accepted until the condition is reset by the DTE, except for 
  26458. examination of the P bit. The FRMR response may be repeated at each opportunity, 
  26459. as specified in \(sc\ 2.4.7.3, until recovery is effected by the DTE, or 
  26460. until the DCE initiates its own recovery in case the DTE does not respond. 
  26461. .ce
  26462. .parag
  26463. .ce
  26464. 2.3.5.5
  26465. .ce
  26466. \fIExcessive idle channel state condition on incoming\fR 
  26467. .ce
  26468.  
  26469. .ce
  26470. \fIchannel\fR 
  26471. .ce
  26472. .parag
  26473. .ce
  26474. Upon detection of an idle channel state condition (see \(sc\ 2.2.12.2 above) 
  26475. on the incoming channel, the DCE shall wait for a period\ T3 (see 
  26476. .ce
  26477. \(sc\ 2.4.8.3 below) without taking any specific action, waiting for detection 
  26478. of a return to the active channel state (i.e.,\ detection of at least one 
  26479. flag 
  26480. .ce
  26481. sequence). After the period\ T3, the DCE shall notify the higher layer 
  26482. (e.g.\ the Packet Layer or the MLP) of the excessive idle channel state 
  26483. condition, but 
  26484. .ce
  26485. shall not take any action that would preclude the DTE from establishing the
  26486. .ce
  26487. data link by normal data link set\(hyup procedures.
  26488. .ce
  26489. .parag
  26490. .ce
  26491. \fINote\fR 
  26492. .ce
  26493. \ \(em\ Other actions to be taken by the DCE at the Data Link Layer upon 
  26494. expiration of period\ T3 is a subject for further study. 
  26495. .ce
  26496. .parag
  26497. .ce
  26498.  
  26499. .ce
  26500. 2.4
  26501. .ce
  26502. \fIDescription of the \fR 
  26503. .ce
  26504. \fILAPB procedure\fR 
  26505. .ce
  26506. .parag
  26507. .ce
  26508. 2.4.1
  26509. .ce
  26510. \fILAPB basic and extended modes of operation\fR 
  26511. .ce
  26512. .parag
  26513. .ce
  26514. In accordance with the system choice made by the DTE at
  26515. .ce
  26516. subscription time, the DCE will either support modulo\ 8 (basic) operation or
  26517. .ce
  26518. will support modulo\ 128 (extended) operation. Changing from basic operation 
  26519. to extended operation, or vice versa, in the DCE requires resubscription 
  26520. by the 
  26521. .ce
  26522. DTE for the desired service, and is not supported dynamically.
  26523. .ce
  26524. .parag
  26525. .ce
  26526. Table 5/X.25 indicates the command and response control field formats used 
  26527. with the basic (modulo\ 8) service. The mode\(hysetting command employed 
  26528. to 
  26529. .ce
  26530. initialize (set up) or reset the basic mode is the SABM command. Table 
  26531. 6/X.25 indicates the command and response control field formats used with 
  26532. the extended (modulo\ 128) service. The mode\(hysetting command employed 
  26533. to initialize (set up) or reset the extended mode is the SABME command. 
  26534. .ce
  26535. .parag
  26536. .ce
  26537. 2.4.2
  26538. .ce
  26539. \fILAPB procedure for addressing\fR 
  26540. .ce
  26541. .parag
  26542. .ce
  26543. The address field identifies a frame as either a command or a
  26544. .ce
  26545. response. A command frame contains the address of the DCE or DTE to which 
  26546. the command is being sent. A response frame contains the address of the 
  26547. DCE or DTE sending the frame. 
  26548. .ce
  26549. .parag
  26550. .ce
  26551. In order to allow differentiation between single link operation and
  26552. .ce
  26553. the optional multilink operation for diagnostic and/or maintenance reasons,
  26554. .ce
  26555. different address pair encodings are assigned to data links operating with
  26556. .ce
  26557. multilink procedure compared to data links operating with the single link
  26558. .ce
  26559. procedure.
  26560. .ce
  26561. .parag
  26562. .ce
  26563. Frames containing commands transferred from the DCE to the DTE will
  26564. .ce
  26565. contain the address\ A for the single link operation and address\ C for the
  26566. .ce
  26567. multilink operation.
  26568. .ce
  26569. .parag
  26570. .ce
  26571. Frames containing responses transferred from the DCE to the DTE will contain 
  26572. the address\ B for the single link operation and address\ D for the 
  26573. .ce
  26574. multilink operation.
  26575. .ce
  26576. .parag
  26577. .ce
  26578.  
  26579. .ce
  26580. Frames containing commands transferred from the DTE to the DCE shall contain 
  26581. the address\ B for the single link operation and address\ D for the 
  26582. .ce
  26583. multilink operation.
  26584. .ce
  26585. .parag
  26586. .ce
  26587. Frames containing responses transferred from the DTE to the DCE shall contain 
  26588. the address\ A for the single link operation and address\ C for the 
  26589. .ce
  26590. multilink operation.
  26591. .ce
  26592. .parag
  26593. .ce
  26594. These addresses are coded as follows:
  26595. .ce
  26596. .parag
  26597. .ce
  26598. Address
  26599. .ce
  26600. 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8
  26601. .ce
  26602. .parag
  26603. .ce
  26604. Single link operation
  26605. .ce
  26606. \ \ A
  26607. .ce
  26608. 1\ 1\ 0\ 0\ 0\ 0\ 0\ 0
  26609. .ce
  26610. .line
  26611. .ce
  26612. \ \ B
  26613. .ce
  26614. 1\ 0\ 0\ 0\ 0\ 0\ 0\ 0
  26615. .ce
  26616. .parag
  26617. .ce
  26618. Multilink operation
  26619. .ce
  26620. \ \ C
  26621. .ce
  26622. 1\ 1\ 1\ 1\ 0\ 0\ 0\ 0
  26623. .ce
  26624. .line
  26625. .ce
  26626. \ \ D
  26627. .ce
  26628. 1\ 1\ 1\ 0\ 0\ 0\ 0\ 0
  26629. .ce
  26630. .parag
  26631. .ce
  26632. \fINote\fR 
  26633. .ce
  26634. \ \(em\ The DCE will discard all frames received with an address other 
  26635. than\ A or\ B (single link operation), or\ C or\ D (multilink operation). 
  26636. .ce
  26637. .parag
  26638. .ce
  26639. 2.4.3
  26640. .ce
  26641. \fILAPB procedure for the use of the P/F bit\fR 
  26642. .ce
  26643. .parag
  26644. .ce
  26645. The DCE or DTE receiving an SABM/SABME, DISC, supervisory command or I\ 
  26646. frame with the P\ bit set to\ 1 will set the F\ bit to\ 1 in the next response 
  26647. frame it transmits. 
  26648. .ce
  26649. .parag
  26650. .ce
  26651. The response frame returned by the DCE to an SABM/SABME or DISC
  26652. .ce
  26653. command with the P\ bit set to\ 1 will be a UA or DM response with the 
  26654. F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  26655. with the P\ bit set to\ 1, received during the information transfer phase, 
  26656. will be an RR, REJ, RNR or FRMR response with the F\ bit set to\ 1. The 
  26657. response frame returned by the 
  26658. .ce
  26659. DCE to a supervisory command with the P\ bit set to\ 1, received during the
  26660. .ce
  26661. information transfer phase, will be an RR, REJ, RNR or FRMR response with 
  26662. the F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  26663. or 
  26664. .ce
  26665. supervisory frame with the P\ bit set to\ 1, received during the disconnected
  26666. .ce
  26667. phase, will be a DM response with the F\ bit set to\ 1.
  26668. .ce
  26669. .parag
  26670. .ce
  26671. The P bit may be used by the DCE in conjunction with the timer
  26672. .ce
  26673. recovery condition (see \(sc\ 2.4.5.9 below).
  26674. .ce
  26675. .parag
  26676. .ce
  26677. \fINote\fR 
  26678. .ce
  26679. \ \(em\ Other use of the P bit by the DCE is a subject for further
  26680. .ce
  26681. study.
  26682. .ce
  26683. .parag
  26684. .ce
  26685. 2.4.4
  26686. .ce
  26687. \fILAPB procedure for data link set\(hyup and disconnection\fR 
  26688. .ce
  26689. .parag
  26690. .ce
  26691.  
  26692. .ce
  26693. 2.4.4.1
  26694. .ce
  26695. \fIData link set\(hyup\fR 
  26696. .ce
  26697. .parag
  26698. .ce
  26699. The DCE will indicate that it is able to set up the data link by
  26700. .ce
  26701. transmitting contiguous flags (active channel state).
  26702. .ce
  26703. .parag
  26704. .ce
  26705. Either the DTE or the DCE may initiate data link set\(hyup. Prior to
  26706. .ce
  26707. initiation of data link set\(hyup, either the DCE or the DTE may initiate data
  26708. .ce
  26709. link
  26710. .ce
  26711. disconnection (see \(sc\ 2.4.4.3) for the purpose of insuring that the 
  26712. DCE and the DTE are in the same phase. The DCE may also transmit an unsolicited 
  26713. DM response to request the DTE to initiate data link set\(hyup. 
  26714. .ce
  26715. .parag
  26716. .ce
  26717. The DTE shall initiate data link set\(hyup by transmitting an SABM/SABME 
  26718. command to the DCE. If, upon receipt of the SABM/SABME command correctly, 
  26719. the DCE determines that it can enter the information transfer phase, it 
  26720. will return a UA response to the DTE, will reset its send and receive state 
  26721. variables V(S) and V(R) to zero, and will consider that the data link is 
  26722. set up. If, upon 
  26723. .ce
  26724. receipt
  26725. .ce
  26726. of the SABM/SABME command correctly, the DCE determines that it cannot enter
  26727. .ce
  26728. the information transfer phase, it will return a DM response to the DTE as a
  26729. .ce
  26730. denial to the data link set\(hyup initialization and will consider that the
  26731. .ce
  26732. data link is
  26733. .ce
  26734. \fInot\fR 
  26735. .ce
  26736.  set up. In order to avoid misinterpretation of the DM response received, 
  26737. it is suggested that the DTE always sends its SABM/SABME command with the 
  26738. P\ bit set to\ 1. Otherwise, it is not possible to differentiate a DM response 
  26739. intended as a denial to data link set\(hyup from a DM response that is 
  26740. issued in a separate unsolicited sense as a request for a mode\(hysetting 
  26741. command (as described 
  26742. .ce
  26743. in\ \(sc\ 2.4.4.4.2).
  26744. .ce
  26745. .parag
  26746. .ce
  26747. The DCE will initiate data link set\(hyup by transmitting an SABM/SABME 
  26748. command to the DTE and starting its Timer\ T1 in order to determine when 
  26749. too 
  26750. .ce
  26751. much time has elapsed waiting for a reply (see \(sc\ 2.4.8.1 below). Upon 
  26752. reception of a UA response from the DTE, the DCE will reset its send and 
  26753. receive state 
  26754. .ce
  26755. variables\ V(S) and\ V(R) to zero, will stop its Timer\ T1, and will consider 
  26756. that the data link is set up. Upon reception of a DM response from the 
  26757. DTE as a 
  26758. .ce
  26759. denial
  26760. .ce
  26761. to the data link set\(hyup initialization, the DCE will stop its Timer\ 
  26762. T1 and will consider that the data link is \fInot\fR 
  26763. .ce
  26764. set up.
  26765. .ce
  26766. .parag
  26767. .ce
  26768.  
  26769. .ce
  26770. The DCE, having sent the SABM/SABME command, will ignore and discard any 
  26771. frames except an SABM/SABME or DISC command, or a UA or DM response 
  26772. .ce
  26773. received from the DTE. The receipt of an SABM/SABME or DISC command from the
  26774. .ce
  26775. DTE will result in a collision situation that is resolved per \(sc\ 2.4.4.5 
  26776. below. Frames other than the UA and DM responses sent in response to a 
  26777. received 
  26778. .ce
  26779. SABM/SABME or DISC command will be sent only after the data link is set 
  26780. up and if no outstanding SABM/SABME command exists. 
  26781. .ce
  26782. .parag
  26783. .ce
  26784. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  26785. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  26786. .ce
  26787. resend the SABM/SABME command and will restart Timer\ T1. After transmission 
  26788. of the SABM/SABME command N2 times by the DCE, appropriate higher layer 
  26789. recovery action will be initiated. The value of N2 is defined in \(sc\ 
  26790. 2.4.8.4 below. 
  26791. .ce
  26792. .parag
  26793. .ce
  26794. 2.4.4.2
  26795. .ce
  26796. \fIInformation transfer phase\fR 
  26797. .ce
  26798. .parag
  26799. .ce
  26800. After having transmitted the UA response to the SABM/SABME command or having 
  26801. received the UA response to a transmitted SABM/SABME command, the DCE will 
  26802. accept and transmit I and supervisory frames according to the procedures 
  26803. described in \(sc\ 2.4.5 below. 
  26804. .ce
  26805. .parag
  26806. .ce
  26807.  
  26808. .ce
  26809. When receiving the SABM/SABME command while in the information
  26810. .ce
  26811. transfer phase, the DCE will conform to the data link resetting procedure
  26812. .ce
  26813. described in \(sc\ 2.4.7 below.
  26814. .ce
  26815. .parag
  26816. .ce
  26817. 2.4.4.3
  26818. .ce
  26819. \fIData link disconnection\fR 
  26820. .ce
  26821. .parag
  26822. .ce
  26823. The DTE shall initiate a disconnect of the data link by
  26824. .ce
  26825. transmitting a DISC command to the DCE. On correctly receiving a DISC command 
  26826. in the information transfer phase, the DCE will send a UA response and 
  26827. enter 
  26828. .ce
  26829. the disconnected phase. On correctly receiving a DISC command in the
  26830. .ce
  26831. disconnected phase, the DCE will send a DM response and remain in the
  26832. .ce
  26833. disconnected phase. In order to avoid misinterpretation of the DM response
  26834. .ce
  26835. received, it is suggested that the DTE always sends its DISC command with 
  26836. the P\ bit set to\ 1. Otherwise, it is not possible to differentiate a 
  26837. DM response 
  26838. .ce
  26839. intended as an indication that the DCE is already in the disconnected phase
  26840. .ce
  26841. from a DM response that is issued in a separate unsolicited sense as a 
  26842. request for a mode\(hysetting command (as described in \(sc\ 2.4.4.4.2). 
  26843. .ce
  26844. .parag
  26845. .ce
  26846.  
  26847. .ce
  26848. The DCE will initiate a disconnect of the data link by transmitting a DISC 
  26849. command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 below). 
  26850. Upon reception of an UA response from the DTE, the DCE will stop its Timer\ 
  26851. T1 and 
  26852. .ce
  26853. will enter the disconnected phase. Upon reception of a DM response from 
  26854. the DTE as an indication that the DTE was already in the disconnected phase, 
  26855. the DCE 
  26856. .ce
  26857. will stop its Timer\ T1 and will enter the disconnected phase.
  26858. .ce
  26859. .parag
  26860. .ce
  26861. The DCE, having sent the DISC command, will ignore and discard any
  26862. .ce
  26863. frames except an SABM/SABME or DISC command, or a UA or DM response received
  26864. .ce
  26865. from the DTE. The receipt of an SABM/SABME or DISC command from the DTE will
  26866. .ce
  26867. result in a collision situation that is resolved per \(sc\ 2.4.4.5 below.
  26868. .ce
  26869. .parag
  26870. .ce
  26871.  
  26872. .ce
  26873. After the DCE sends the DISC command, if a UA or DM response is not
  26874. .ce
  26875. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  26876. resend the DISC command and will restart Timer\ T1. After transmission 
  26877. of the DISC 
  26878. .ce
  26879. command N2 times by the DCE, appropriate higher layer recovery action will 
  26880. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  26881. .ce
  26882. .parag
  26883. .ce
  26884. 2.4.4.4
  26885. .ce
  26886. \fIDisconnected phase\fR 
  26887. .ce
  26888. .parag
  26889. .ce
  26890. 2.4.4.4.1
  26891. .ce
  26892. After having received a DISC command from the DTE and
  26893. .ce
  26894. returned a UA response to the DTE, or having received the UA response to a
  26895. .ce
  26896. transmitted DISC command, the DCE will enter the disconnected phase.
  26897. .ce
  26898. .parag
  26899. .ce
  26900. In the disconnected phase, the DCE may initiate data link set\(hyup. In 
  26901. the disconnected phase, the DCE will react to the receipt of an SABM/SABME 
  26902. command as described in \(sc\ 2.4.4.1 above and will transmit a DM response 
  26903. in 
  26904. .ce
  26905. answer to a received DISC command. When receiving any other command (defined, 
  26906. or undefined or not implemented) with the P\ bit set to\ 1, the DCE will 
  26907. transmit a DM response with the F\ bit set to\ 1. Other frames received 
  26908. in the 
  26909. .ce
  26910. disconnected phase will be ignored by the DCE.
  26911. .ce
  26912. .parag
  26913. .ce
  26914. 2.4.4.4.2
  26915. .ce
  26916. When the DCE enters the disconnected phase after
  26917. .ce
  26918. detecting error conditions as listed in \(sc\ 2.4.6 below, or after an internal
  26919. .ce
  26920. malfunction, it may indicate this by sending a DM response rather than 
  26921. a DISC command. In these cases, the DCE will transmit a DM response and 
  26922. start its 
  26923. .ce
  26924. Timer\ T1 (see \(sc\ 2.4.8.1 below).
  26925. .ce
  26926. .parag
  26927. .ce
  26928. If Timer T1 runs out before the reception of an SABM/SABME or DISC command 
  26929. from the DTE, the DCE will retransmit the DM response and restart 
  26930. .ce
  26931. Timer\ T1. After transmission of the DM response N2 times, the DCE will 
  26932. remain in the disconnected phase and appropriate recovery actions will 
  26933. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  26934. .ce
  26935. .parag
  26936. .ce
  26937. Alternatively, after an internal malfunction, the DCE may either
  26938. .ce
  26939. initiate a data link resetting procedure (see \(sc\ 2.4.7 below) or disconnect 
  26940. the data link (see \(sc\ 2.4.4.3 above) prior to initiating a data link 
  26941. set\(hyup 
  26942. .ce
  26943. procedure (see \(sc\ 2.4.4.1 above).
  26944. .ce
  26945. .parag
  26946. .ce
  26947. 2.4.4.5
  26948. .ce
  26949. \fICollision of unnumbered commands\fR 
  26950. .ce
  26951. .parag
  26952. .ce
  26953. Collision situations shall be resolved in the following way:
  26954. .ce
  26955. .parag
  26956. .ce
  26957. 2.4.4.5.1
  26958. .ce
  26959. If the sent and received unnumbered commands are the
  26960. .ce
  26961. same, the DCE and the DTE shall each send the UA response at the earliest
  26962. .ce
  26963. possible opportunity. The DCE shall enter the indicated phase either,
  26964. .ce
  26965. .parag
  26966. .ce
  26967.  
  26968. .ce
  26969. 1)
  26970. .ce
  26971. after receiving the UA response,
  26972. .ce
  26973. .parag
  26974. .ce
  26975. 2)
  26976. .ce
  26977. after sending the UA response, or
  26978. .ce
  26979. .parag
  26980. .ce
  26981. 3)
  26982. .ce
  26983. after timing out waiting for the UA response having sent a
  26984. .ce
  26985. UA response.
  26986. .ce
  26987. .parag
  26988. .ce
  26989. In the case of 2) above, the DCE will accept a subsequent UA
  26990. .ce
  26991. response to the mode\(hysetting command it issued without causing an exception
  26992. .ce
  26993. condition if received within the time\(hyout interval.
  26994. .ce
  26995. .parag
  26996. .ce
  26997.  
  26998. .ce
  26999. 2.4.4.5.2
  27000. .ce
  27001. If the sent and received unnumbered commands are
  27002. .ce
  27003. different, the DCE and the DTE shall each enter the disconnected phase and
  27004. .ce
  27005. issue a DM response at the earliest possible opportunity.
  27006. .ce
  27007. .parag
  27008. .ce
  27009. 2.4.4.6
  27010. .ce
  27011. \fICollision of DM response with SABM/SABME or DISC\fR 
  27012. .ce
  27013.  
  27014. .ce
  27015. \fIcommand\fR 
  27016. .ce
  27017. .parag
  27018. .ce
  27019. When a DM response is issued by the DCE or DTE as an unsolicited
  27020. .ce
  27021. response to request the DTE or DCE, respectively, to issue a mode\(hysetting
  27022. .ce
  27023. command as described in \(sc\ 2.4.4.4, a collision between an SABM/SABME 
  27024. or DISC 
  27025. .ce
  27026. command and the unsolicited DM response may occur. In order to avoid
  27027. .ce
  27028. misinterpretation of the DM response received, the DTE always sends its
  27029. .ce
  27030. SABM/SABME or DISC command with the P\ bit set to\ 1.
  27031. .ce
  27032. .parag
  27033. .ce
  27034. 2.4.4.7
  27035. .ce
  27036. \fICollision of DM responses\fR 
  27037. .ce
  27038. .parag
  27039. .ce
  27040. A contention situation may occur when both the DCE and the DTE
  27041. .ce
  27042. issue a DM response to request a mode\(hysetting command. In this case, the DTE
  27043. .ce
  27044. will issue an SABM/SABME command to resolve the contention situation.
  27045. .ce
  27046. .parag
  27047. .ce
  27048.  
  27049. .ce
  27050. 2.4.5
  27051. .ce
  27052. \fILAPB procedures for information transfer\fR 
  27053. .ce
  27054. .parag
  27055. .ce
  27056. The procedures which apply to the transmission of I\ frames in each direction 
  27057. during the information transfer phase are described below. 
  27058. .ce
  27059. .parag
  27060. .ce
  27061. In the following, \*Qnumber one higher\*U is in reference to a
  27062. .ce
  27063. continuously repeated sequence series, i.e., 7 is 1\ higher than 6 and 0 is
  27064. .ce
  27065. 1\ higher than 7 for modulo\ 8 series, and 127 is 1\ higher than 126 and 0 is
  27066. .ce
  27067. 1\ higher than 127 for modulo\ 128 series.
  27068. .ce
  27069. .parag
  27070. .ce
  27071. 2.4.5.1
  27072. .ce
  27073. \fISending I frames\fR 
  27074. .ce
  27075. .parag
  27076. .ce
  27077. When the DCE has an I frame to transmit (i.e. an I frame not
  27078. .ce
  27079. already transmitted, or having to be retransmitted as described in \(sc\ 
  27080. 2.4.5.6 
  27081. .ce
  27082. below), it will transmit it with an N(S) equal to its current send state
  27083. .ce
  27084. variable V(S), and an N(R) equal to its current receive state variable 
  27085. V(R). At the end of the transmission of the I\ frame, the DCE will increment 
  27086. its send 
  27087. .ce
  27088. state variable V(S) by\ 1.
  27089. .ce
  27090. .parag
  27091. .ce
  27092. If Timer T1 is not running at the time of transmission of an I frame, it 
  27093. will be started. 
  27094. .ce
  27095. .parag
  27096. .ce
  27097. If the send state variable V(S) is equal to the last value of N(R)
  27098. .ce
  27099. received plus \fIk\fR 
  27100. .ce
  27101. (where \fIk\fR 
  27102. .ce
  27103. is the maximum number of outstanding I\ frames \(em
  27104. .ce
  27105. see \(sc\ 2.4.8.6 below), the DCE will not transmit any new I\ frames, but may
  27106. .ce
  27107. retransmit an I\ frame as described in \(sc\(sc\ 2.4.5.6 or 2.4.5.9 below.
  27108. .ce
  27109. .parag
  27110. .ce
  27111. When the DCE is in the busy condition, it may still transmit I frames, 
  27112. provided that the DTE is not busy. When the DCE is in the frame rejection 
  27113. .ce
  27114. condition, it will stop transmitting I\ frames.
  27115. .ce
  27116. .parag
  27117. .ce
  27118. 2.4.5.2
  27119. .ce
  27120. \fIReceiving an I frame\fR 
  27121. .ce
  27122. .parag
  27123. .ce
  27124. 2.4.5.2.1
  27125. .ce
  27126. When the DCE is not in a busy condition and receives a valid I\ frame whose 
  27127. send sequence number N(S) is equal to the DCE receive state 
  27128. .ce
  27129. variable V(R), the DCE will accept the information field of this frame,
  27130. .ce
  27131. increment by one its receive state variable V(R), and act as follows:
  27132. .ce
  27133. .parag
  27134. .ce
  27135.  
  27136. .ce
  27137. a)
  27138. .ce
  27139. If the DCE is still not in a busy condition:
  27140. .ce
  27141. .parag
  27142. .ce
  27143. i)
  27144. .ce
  27145. If an I frame is available for transmission by the
  27146. .ce
  27147. DCE, it may act as in \(sc\ 2.4.5.1 above and acknowledge
  27148. .ce
  27149. the received I frame by setting N(R) in the control field
  27150. .ce
  27151. of the next transmitted I\ frame to the value of the DCE
  27152. .ce
  27153. receive state variable V(R). Alternatively, the DCE may
  27154. .ce
  27155. acknowledge the received I\ frame by transmitting an RR
  27156. .ce
  27157. frame with the N(R) equal to the value of the DCE receive
  27158. .ce
  27159. state variable V(R).
  27160. .ce
  27161. .parag
  27162. .ce
  27163. ii)
  27164. .ce
  27165. If no I frame is available for transmission by the
  27166. .ce
  27167. DCE, it will transmit an RR frame with N(R) equal to the
  27168. .ce
  27169. value of the DCE receive state variable V(R).
  27170. .ce
  27171. .parag
  27172. .ce
  27173.  
  27174. .ce
  27175. b)
  27176. .ce
  27177. If the DCE is now in a busy condition, it will transmit an
  27178. .ce
  27179. RNR frame with N(R) equal to the value of the DCE receive
  27180. .ce
  27181. state variable V(R) (see \(sc\ 2.4.5.8).
  27182. .ce
  27183. .parag
  27184. .ce
  27185.  
  27186. .ce
  27187. 2.4.5.2.2
  27188. .ce
  27189. When the DCE is in a busy condition, it may ignore the
  27190. .ce
  27191. information field contained in any received I\ frame.
  27192. .ce
  27193. .parag
  27194. .ce
  27195. 2.4.5.3
  27196. .ce
  27197. \fIReception of invalid frames\fR 
  27198. .ce
  27199. .parag
  27200. .ce
  27201. When the DCE receives an invalid frame (see \(sc\ 2.3.5.3), this frame 
  27202. will be discarded. 
  27203. .ce
  27204. .parag
  27205. .ce
  27206. 2.4.5.4
  27207. .ce
  27208. \fIReception of out\(hyof\(hysequence I frames\fR 
  27209. .ce
  27210. .parag
  27211. .ce
  27212. When the DCE receives a valid I frame whose send sequence number
  27213. .ce
  27214. N(S) is incorrect, i.e.,\ not equal to the current DCE receive state variable
  27215. .ce
  27216. V(R), it will discard the information field of the I\ frame and transmit 
  27217. an REJ frame with the N(R) set to one higher than the N(S) of the last 
  27218. correctly 
  27219. .ce
  27220. received I\ frame. The REJ frame will be a command frame with the P\ bit 
  27221. set to\ 1 if an acknowledged transfer of the retransmission request is 
  27222. required; 
  27223. .ce
  27224. otherwise the REJ frame may be either a command or a response frame. The DCE
  27225. .ce
  27226. will then discard the information field of all I\ frames received until the
  27227. .ce
  27228. expected I\ frame is correctly received. When receiving the expected I\ frame,
  27229. .ce
  27230. the DCE will then acknowledge the I\ frame as described in \(sc\ 2.4.5.2 
  27231. above. The DCE will use the N(R) and P\ bit information in the discarded 
  27232. I\ frames as 
  27233. .ce
  27234. described in \(sc\ 2.3.5.2 above.
  27235. .ce
  27236. .parag
  27237. .ce
  27238. 2.4.5.5
  27239. .ce
  27240. \fIReceiving acknowledgement\fR 
  27241. .ce
  27242. .parag
  27243. .ce
  27244. When correctly receiving an I frame or a supervisory frame (RR, RNR or 
  27245. REJ), even in the busy condition, the DCE will consider the N(R) contained 
  27246. in this frame as an acknowledgement for all I\ frames it has transmitted 
  27247. with an N(S) up to and including the received N(R)\(em1. The DCE will stop 
  27248. Timer\ T1 when it correctly receives an I\ frame or a supervisory frame 
  27249. with the N(R) higher 
  27250. .ce
  27251. than the last received N(R) (actually acknowledging some I\ frames), or 
  27252. an REJ frame with an N(R) equal to the last received N(R). 
  27253. .ce
  27254. .parag
  27255. .ce
  27256.  
  27257. .ce
  27258. If Timer T1 has been stopped by the receipt on an I, RR or RNR frame, and 
  27259. if there are outstanding I\ frames still unacknowledged, the DCE will 
  27260. .ce
  27261. restart Timer\ T1. If Timer\ T1 then runs out, the DCE will follow the 
  27262. recovery procedure (\(sc\ 2.4.5.9 below) with respect to the unacknowledged 
  27263. I\ frames. If 
  27264. .ce
  27265. Timer\ T1 has been stopped by the receipt of an REJ frame, the DCE will 
  27266. follow the retransmission procedures in \(sc\ 2.4.5.6 below. 
  27267. .ce
  27268. .parag
  27269. .ce
  27270. 2.4.5.6
  27271. .ce
  27272. \fIReceiving an REJ frame\fR 
  27273. .ce
  27274. .parag
  27275. .ce
  27276. When receiving an REJ frame, the DCE will set its send state
  27277. .ce
  27278. variable V(S) to the N(R) received in the REJ control field. It will transmit 
  27279. the corresponding I\ frame as soon as it is available or retransmit it 
  27280. in 
  27281. .ce
  27282. accordance with the procedures described in \(sc\ 2.4.5.1 above. (Re)transmission 
  27283. will conform to the following procedure: 
  27284. .ce
  27285. .parag
  27286. .ce
  27287. i)
  27288. .ce
  27289. if the DCE is transmitting a supervisory command or response
  27290. .ce
  27291. when it receives the REJ frame, it will complete that
  27292. .ce
  27293. transmission before commencing transmission of the requested
  27294. .ce
  27295. I\ frame;
  27296. .ce
  27297. .parag
  27298. .ce
  27299.  
  27300. .ce
  27301. ii)
  27302. .ce
  27303. if the DCE is transmitting an unnumbered command or
  27304. .ce
  27305. response when it receives the REJ frame, it will ignore the
  27306. .ce
  27307. request for retransmission;
  27308. .ce
  27309. .parag
  27310. .ce
  27311. iii)
  27312. .ce
  27313. if the DCE is transmitting an I frame when the REJ frame
  27314. .ce
  27315. is received, it may abort the I\ frame and commence transmission
  27316. .ce
  27317. of the requested I\ frame immediately after abortion;
  27318. .ce
  27319. .parag
  27320. .ce
  27321. iv)
  27322. .ce
  27323. if the DCE is not transmitting any frame when the REJ frame
  27324. .ce
  27325. is received, it will commence transmission of the requested
  27326. .ce
  27327. I\ frame immediately.
  27328. .ce
  27329. .parag
  27330. .ce
  27331. In all cases, if other unacknowledged I frames had already been
  27332. .ce
  27333. transmitted following the one indicated in the REJ frame, then those I 
  27334. frames will be retransmitted by the DCE following the retransmission of 
  27335. the requested I\ frame. Other I\ frames not yet transmitted may be transmitted 
  27336. following the 
  27337. .ce
  27338. retransmitted I\ frames.
  27339. .ce
  27340. .parag
  27341. .ce
  27342. If the REJ frame was received from the DTE as a command with the P bit 
  27343. set to\ 1, the DCE will transmit an RR, RNR or REJ response with the F 
  27344. bit set to\ 1 before transmitting or retransmitting the corresponding I\ 
  27345. frame. 
  27346. .ce
  27347. .parag
  27348. .ce
  27349. 2.4.5.7
  27350. .ce
  27351. \fIReceiving an RNR frame\fR 
  27352. .ce
  27353. .parag
  27354. .ce
  27355. After receiving an RNR frame whose N(R) acknowledges all frames
  27356. .ce
  27357. previously transmitted, the DCE will stop Timer\ T1 and may then transmit
  27358. .ce
  27359. an I\ frame, with the P\ bit set to\ 0, whose send sequence number is
  27360. .ce
  27361. equal to the N(R) indicated in the RNR frame, restarting Timer\ T1 as it 
  27362. does. After receiving an RNR frame whose N(R) indicates a previously transmitted 
  27363. .ce
  27364. frame, the DCE will not transmit or retransmit any I\ frame, Timer\ T1 being
  27365. .ce
  27366. already running. In either case, if the Timer\ T1 runs out before receipt 
  27367. of a busy clearance indication, the DCE will follow the procedure described 
  27368. in 
  27369. .ce
  27370. \(sc\ 2.4.5.9\ below. In any case, the DCE will not transmit any other 
  27371. I\ frames 
  27372. .ce
  27373. before receiving an RR or REJ frame, or before the completion of a link
  27374. .ce
  27375. resetting procedure.
  27376. .ce
  27377. .parag
  27378. .ce
  27379. Alternatively, after receiving an RNR frame, the DCE may wait for a
  27380. .ce
  27381. period of time (e.g.,\ the length of the Timer\ T1) and then transmit a
  27382. .ce
  27383. supervisory command frame (RR, RNR or REJ) with the P\ bit set to\ 1, and 
  27384. start Timer\ T1, in order to determine if there is any change in the receive 
  27385. status of the DTE. The DTE shall respond to the P\ bit set to\ 1 with a 
  27386. supervisory 
  27387. .ce
  27388. response frame (RR, RNR or REJ) with the F\ bit set to\ 1 indicating either
  27389. .ce
  27390. continuance of the busy condition (RNR) or clearance of the busy condition 
  27391. (RR or REJ). Upon receipt of the DTE response, Timer\ T1 is stopped. 
  27392. .ce
  27393. .parag
  27394. .ce
  27395.  
  27396. .ce
  27397. 1)
  27398. .ce
  27399. If the response is the RR or REJ response, the busy
  27400. .ce
  27401. condition is cleared and the DCE may transmit I\ frames beginning
  27402. .ce
  27403. with the I\ frame identified by the N(R) in the received response
  27404. .ce
  27405. frame.
  27406. .ce
  27407. .parag
  27408. .ce
  27409. 2)
  27410. .ce
  27411. If the response is the RNR response, the busy condition
  27412. .ce
  27413. still exists, and the DCE will after a period of time (e.g.\ the
  27414. .ce
  27415. length of Timer\ T1) repeat the enquiry of the DTE receive
  27416. .ce
  27417. status.
  27418. .ce
  27419. .parag
  27420. .ce
  27421. If Timer T1 runs out before a status response is received, the
  27422. .ce
  27423. enquiry process above is repeated. If N2 attempts to get a status response 
  27424. fail (i.e.\ Timer\ T1 runs out N2\ times), the DCE will initiate a data 
  27425. link resetting procedure as described in \(sc\ 2.4.7.2\ below or will transmit 
  27426. a DM response to ask the DTE to initiate a data link set\(hyup procedure 
  27427. as described in \(sc\ 2.4.4.1 and enter the disconnected phase. The value 
  27428. of N2 is defined in \(sc\ 2.4.8.4\ below. 
  27429. .ce
  27430. .parag
  27431. .ce
  27432.  
  27433. .ce
  27434. If, at any time during the enquiry process, an unsolicited RR or REJ frame 
  27435. is received from the DTE, it will be considered to be an indication of 
  27436. .ce
  27437. clearance of the busy condition. Should the unsolicited RR or REJ frame be a
  27438. .ce
  27439. command frame with the P bit set to\ 1, the appropriate response frame 
  27440. with the F\ bit set to 1 must be transmitted before the DCE may resume 
  27441. transmission of 
  27442. .ce
  27443. I\ frames. If Timer\ T1 is running, the DCE will wait for the non\(hybusy 
  27444. response with the F bit set to\ 1 or will wait for Timer\ T1 to run out 
  27445. and then either 
  27446. .ce
  27447. may reinitiate the enquiry process in order to realize a successful P/F bit
  27448. .ce
  27449. exchange or may resume transmission of I frames beginning with the I\ frame
  27450. .ce
  27451. identified by the N(R) in the received RR or REJ frame.
  27452. .ce
  27453. .parag
  27454. .ce
  27455. 2.4.5.8
  27456. .ce
  27457. \fIDCE busy condition\fR 
  27458. .ce
  27459. .parag
  27460. .ce
  27461. When the DCE enters a busy condition, it will transmit an RNR frame at 
  27462. the earliest opportunity. The RNR frame will be a command frame with the 
  27463. P bit set to\ 1 if an acknowledged transfer of the busy condition indication 
  27464. is 
  27465. .ce
  27466. required; otherwise the RNR frame may be either a command or a response 
  27467. frame. While in the busy condition, the DCE will accept and process supervisory 
  27468. .ce
  27469. frames, will accept and process the contents of the N(R) fields of I\ frames,
  27470. .ce
  27471. and will return an RNR response with the F bit set to\ 1 if it receives a
  27472. .ce
  27473. supervisory command or I command frame with the P bit set to\ 1. To clear the
  27474. .ce
  27475. busy condition, the DCE will transmit either an REJ frame or an RR frame, with
  27476. .ce
  27477. N(R) set to the current receive state variable V(R), depending on whether or
  27478. .ce
  27479. not it discarded information fields of correctly received I\ frames. The REJ
  27480. .ce
  27481. frame or the RR frame will be a command frame with the P bit set to\ 1 if an
  27482. .ce
  27483. acknowledged transfer of the busy\(hyto\(hynon\(hybusy transition is required, 
  27484. otherwise the REJ frame or the RR frame may be either a command or a response 
  27485. frame. 
  27486. .ce
  27487. .parag
  27488. .ce
  27489.  
  27490. .ce
  27491. 2.4.5.9
  27492. .ce
  27493. \fIWaiting acknowledgement\fR 
  27494. .ce
  27495. .parag
  27496. .ce
  27497. The DCE maintains an internal transmission attempt variable which is set 
  27498. to\ 0 when the DCE sends a UA response, when the DCE receives a UA 
  27499. .ce
  27500. response or an RNR command or response, or when the DCE correctly receives 
  27501. an I\ frame or supervisory frame with the N(R) higher than the last received 
  27502. N(R) (actually acknowledging some outstanding I\ frames). 
  27503. .ce
  27504. .parag
  27505. .ce
  27506. If Timer T1 runs out waiting for the acknowledgement from the DTE for an 
  27507. I\ frame transmitted, the DCE will enter the timer recovery condition, 
  27508. add 
  27509. .ce
  27510. one to its transmission attempt variable and set an internal variable \fIx\fR 
  27511. .ce
  27512. to
  27513. .ce
  27514. the current value of its send state variable V(S). The DCE will then restart
  27515. .ce
  27516. Timer T1, set its send state variable V(S) to the last value of N(R) received 
  27517. from the DTE and retransmit the corresponding I\ frame with the P bit set 
  27518. to\ 1, or transmit an appropriate supervisory command frame (RR, RNR or 
  27519. REJ) with the P\ bit set to\ 1. 
  27520. .ce
  27521. .parag
  27522. .ce
  27523.  
  27524. .ce
  27525. The timer recovery condition is cleared when the DCE receives a valid supervisory 
  27526. frame with the F\ bit\ set to\ 1. 
  27527. .ce
  27528. .parag
  27529. .ce
  27530. If, while in the timer recovery condition, the DCE correctly receives a 
  27531. supervisory frame with the F bit set to\ 1 and with the N(R) within the 
  27532. range from its current send state variable V(S) to \fIx\fR 
  27533. .ce
  27534. included, it will clear the
  27535. .ce
  27536. timer recovery condition (including stopping Timer\ T1) and set its send 
  27537. state variable V(S) to the value of the received N(R), and may then resume 
  27538. with 
  27539. .ce
  27540. I\ frame transmission or retransmission, as appropriate.
  27541. .ce
  27542. .parag
  27543. .ce
  27544. If, while in the timer recovery condition, the DCE correctly receives an 
  27545. I or supervisory frame with the P/F bit set to\ 0 and with a valid N(R) 
  27546. (see \(sc\ 2.3.4.9), it will not clear the timer recovery condition. The 
  27547. value of the 
  27548. .ce
  27549. received N(R) may be used to update the send state variable V(S). However, 
  27550. the DCE may decide to keep the last transmitted I\ frame in store (even 
  27551. if it is 
  27552. .ce
  27553. acknowledged) in order to be able to retransmit it with the P bit set to\ 
  27554. 1 when Timer\ T1 runs out at a later time. 
  27555. .ce
  27556. .parag
  27557. .ce
  27558.  
  27559. .ce
  27560. If the received supervisory frame with the P/F bit set to\ 0 is an REJ 
  27561. frame with a valid N(R), the DCE may either immediately initiate 
  27562. .ce
  27563. (re)transmission from the value of the send state variable V(S), or it may
  27564. .ce
  27565. ignore the request for retransmission and wait until the supervisory frame 
  27566. with the F bit set to\ 1 is received before initiating (re)transmission 
  27567. of frames 
  27568. .ce
  27569. from the value identified in the N(R) field of the supervisory frame with 
  27570. the F\ bit set to\ 1. In the case of immediate retransmission, in order 
  27571. to prevent 
  27572. .ce
  27573. duplicate retransmissions following the clearance of the timer recovery
  27574. .ce
  27575. condition, the DCE shall inhibit retransmission of a specific I\ frame [same
  27576. .ce
  27577. N(R) in the same numbering cycle] if the DCE has retransmitted that I\ 
  27578. frame as the result of a received REJ frame with the P/F bit set to\ 0. 
  27579. .ce
  27580. .parag
  27581. .ce
  27582. If, while in the timer recovery condition, the DCE receives a REJ
  27583. .ce
  27584. command with the P bit set to\ 1, the DCE will respond immediately with an
  27585. .ce
  27586. appropriate supervisory response with the F bit set to\ 1. The DCE may 
  27587. then use the value of the N(R) in the REJ command to update the send state 
  27588. variable 
  27589. .ce
  27590. V(S), and may either immediately begin (re)transmission from the value N(R)
  27591. .ce
  27592. indicated in the REJ frame or ignore the request for retransmission and wait
  27593. .ce
  27594. until the supervisory frame with the F bit set to\ 1 is received before
  27595. .ce
  27596. initiating (re)transmission of I\ frames from the value identified in the 
  27597. N(R) field of the supervisory frame with the F\ bit set to\ 1. In the case 
  27598. of 
  27599. .ce
  27600. immediate retransmission, in order to prevent duplicate retransmissions
  27601. .ce
  27602. following the clearance of the timer recovery condition, the DCE shall 
  27603. inhibit retransmission of a specific I\ frame [same N(R) in the same numbering 
  27604. cycle] 
  27605. .ce
  27606. if the DCE has retransmitted that I\ frame as the result of the received REJ
  27607. .ce
  27608. command with the P\ bit set to\ 1.
  27609. .ce
  27610. .parag
  27611. .ce
  27612. If Timer T1 runs out in the timer recovery condition, and no I or
  27613. .ce
  27614. supervisory frame with the P/F bit set to 0 and with a valid N(R) has been
  27615. .ce
  27616. received, or no REJ command with the P bit set to\ 1 and with a valid N(R) 
  27617. has been received, the DCE will add one to its transmission attempt variable, 
  27618. .ce
  27619. restart Timer\ T1, and either retransmit the I frame sent with the P bit set
  27620. .ce
  27621. to\ 1 or transmit an appropriate supervisory command with the P bit set to\ 1.
  27622. .ce
  27623. .parag
  27624. .ce
  27625.  
  27626. .ce
  27627. If the transmission attempt variable is equal to N2, the DCE will
  27628. .ce
  27629. initiate a data link resetting procedure as described in \(sc\ 2.4.7.2 
  27630. below, or 
  27631. .ce
  27632. will transmit a DM response to ask the DTE to initiate a data link set\(hyup
  27633. .ce
  27634. procedure as described in \(sc\ 2.4.4.1 above and enter the disconnected 
  27635. phase. N2 is a system parameter (see \(sc\ 2.4.8.4 below). 
  27636. .ce
  27637. .parag
  27638. .ce
  27639. \fINote\fR 
  27640. .ce
  27641. \ \(em\ Although the DCE may implement the internal variable \fIx\fR 
  27642. .ce
  27643. ,
  27644. .ce
  27645. other mechanisms do exist that achieve the identical function.
  27646. .ce
  27647. .parag
  27648. .ce
  27649. 2.4.6
  27650. .ce
  27651. \fILAPB conditions for \fR 
  27652. .ce
  27653. \fIdata link resetting or data link\fR 
  27654. .ce
  27655.  
  27656. .ce
  27657. \fIre\(hyinitialization\fR 
  27658. .ce
  27659. \fI(data link set\(hyup)\fR 
  27660. .ce
  27661. .parag
  27662. .ce
  27663. 2.4.6.1
  27664. .ce
  27665. When the DCE receives, during the information transfer phase, a
  27666. .ce
  27667. frame which is not invalid (see \(sc\ 2.3.5.3) with one of the conditions 
  27668. listed in \(sc\ 2.3.4.9 above, the DCE will request the DTE to initiate 
  27669. a data link resetting procedure by transmitting an FRMR response to the 
  27670. DTE as described in 
  27671. .ce
  27672. \(sc\ 2.4.7.3.
  27673. .ce
  27674. .parag
  27675. .ce
  27676. 2.4.6.2
  27677. .ce
  27678. When the DCE receives, during the information transfer phase, an FRMR response 
  27679. from the DTE, the DCE will either initiate the data link 
  27680. .ce
  27681. resetting procedures itself as described in \(sc\ 2.4.7.2 or return a DM 
  27682. response to ask the DTE to initiate the data link set\(hyup (initialization) 
  27683. procedure as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  27684. the DCE will enter 
  27685. .ce
  27686. the disconnected phase as described in \(sc\ 2.4.4.4.2.
  27687. .ce
  27688. .parag
  27689. .ce
  27690. 2.4.6.3
  27691. .ce
  27692. When the DCE receives, during the information transfer phase, a UA response, 
  27693. or an unsolicited response with the F bit set to\ 1, the DCE may 
  27694. .ce
  27695. either initiate the data link resetting procedures itself as described in
  27696. .ce
  27697. \(sc\ 2.4.7.2, or return a DM response to ask the DTE to initiate the data link
  27698. .ce
  27699. set\(hyup (initialization) procedure as described in \(sc\ 2.4.4.1. After 
  27700. transmitting a DM response, the DCE will enter the disconnected phase as 
  27701. described in 
  27702. .ce
  27703. \(sc\ 2.4.4.4.2.
  27704. .ce
  27705. .parag
  27706. .ce
  27707. 2.4.6.4
  27708. .ce
  27709. When the DCE receives, during the information transfer phase, a DM response 
  27710. from the DTE, the DCE will either initiate the data link set\(hyup 
  27711. .ce
  27712. (initialization) procedures itself as described in \(sc\ 2.4.4.1, or return 
  27713. a DM 
  27714. .ce
  27715. response to ask the DTE to initiate the data link set\(hyup (initialization)
  27716. .ce
  27717. procedures as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  27718. the DCE will enter the disconnected phase as described in \(sc\ 2.4.4.4.2. 
  27719. .ce
  27720. .parag
  27721. .ce
  27722.  
  27723. .ce
  27724. 2.4.7
  27725. .ce
  27726. \fILAPB procedure for data link resetting\fR 
  27727. .ce
  27728. .parag
  27729. .ce
  27730. 2.4.7.1
  27731. .ce
  27732. The data link resetting procedure is used to initialize both
  27733. .ce
  27734. directions of information transfer according to the procedure described 
  27735. below. The data link resetting procedure only applies during the information 
  27736. transfer phase. 
  27737. .ce
  27738. .parag
  27739. .ce
  27740. 2.4.7.2
  27741. .ce
  27742. Either the DTE or the DCE may initiate the data link resetting
  27743. .ce
  27744. procedure. The data link resetting procedure indicates a clearance of a DCE
  27745. .ce
  27746. and/or DTE busy condition, if present.
  27747. .ce
  27748. .parag
  27749. .ce
  27750. The DTE shall initiate a data link resetting by transmitting an
  27751. .ce
  27752. SABM/SABME command to the DCE. If, upon correct receipt of the SABM/SABME
  27753. .ce
  27754. command, the DCE determines that it can continue in the information transfer
  27755. .ce
  27756. phase, it will return a UA response to the DTE, will reset its send and 
  27757. receive state variables V(S) and V(R) to zero, and will remain in the information 
  27758. .ce
  27759. transfer phase. If, upon correct receipt of the SABM/SABME command, the DCE
  27760. .ce
  27761. determines that it cannot remain in the information transfer phase, it will
  27762. .ce
  27763. return a DM response as a denial to the resetting request and will enter the
  27764. .ce
  27765. disconnected phase.
  27766. .ce
  27767. .parag
  27768. .ce
  27769. The DCE will initiate a data link resetting by transmitting an
  27770. .ce
  27771. SABM/SABME command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 
  27772. below). Upon reception of a UA response from the DTE, the DCE will reset 
  27773. its send and receive state variables V(S) and V(R) to zero, will stop its 
  27774. Timer\ T1, and will remain in the information transfer phase. Upon reception 
  27775. of a DM response from the DTE as a denial to the data link resetting request, 
  27776. the DCE will stop its Timer\ T1 and will enter the disconnected phase. 
  27777. .ce
  27778. .parag
  27779. .ce
  27780. The DCE, having sent an SABM/SABME command, will ignore and discard
  27781. .ce
  27782. any frames received from the DTE except an SABM/SABME or DISC command, 
  27783. or a UA or DM response. The receipt of an SABM/SABME or DISC command from 
  27784. the DTE will result in a collision situation that is resolved per \(sc\ 
  27785. 2.4.4.5 above. Frames 
  27786. .ce
  27787. other than the UA or DM response sent in response to a received SABM/SABME 
  27788. or DISC command will be sent only after the data link is reset and if no 
  27789. .ce
  27790. outstanding SABM/SABME command exists.
  27791. .ce
  27792. .parag
  27793. .ce
  27794.  
  27795. .ce
  27796. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  27797. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  27798. .ce
  27799. resend the SABM/SABME command and will restart Timer\ T1. After N2 attempts 
  27800. to reset the data link, the DCE will initiate appropriate higher layer 
  27801. recovery 
  27802. .ce
  27803. action and will enter the disconnected phase. The value of N2 is defined in
  27804. .ce
  27805. \(sc\ 2.4.8.4 below.
  27806. .ce
  27807. .parag
  27808. .ce
  27809. 2.4.7.3
  27810. .ce
  27811. The DCE may ask the DTE to reset the data link by transmitting an FRMR 
  27812. response (see \(sc\ 2.4.6.1 above). After transmitting an FRMR response, 
  27813. .ce
  27814. the DCE will enter the frame rejection condition.
  27815. .ce
  27816. .parag
  27817. .ce
  27818. The frame rejection condition is cleared when the DCE receives an SABM/SABME 
  27819. command, a DISC command, a FRMR response, or a DM response; or if 
  27820. .ce
  27821. the DCE transmits an SABM/SABME command, a DISC command, or a DM response.
  27822. .ce
  27823. Other commands received while in the frame rejection condition will cause 
  27824. the DCE to retransmit the FRMR response with the same information field 
  27825. as 
  27826. .ce
  27827. originally transmitted.
  27828. .ce
  27829. .parag
  27830. .ce
  27831. The DCE may start Timer\ T1 on transmission of the FRMR response. If
  27832. .ce
  27833. Timer\ T1 runs out before the frame rejection condition is cleared, the 
  27834. DCE may retransmit the FRMR response, and restart T1. After N2 attempts 
  27835. (time outs) to get the DTE to reset the data link, the DCE may reset the 
  27836. data link itself as described in \(sc\ 2.4.7.2 above. The value of N2 is 
  27837. defined in \(sc\ 2.4.8.4 below. 
  27838. .ce
  27839. .parag
  27840. .ce
  27841.  
  27842. .ce
  27843. In the frame rejection condition, I frames and supervisory frames will 
  27844. not be transmitted by the DCE. Also, received I frames and supervisory 
  27845. frames will be discarded by the DCE except for the observance of a P bit 
  27846. set to\ 1. 
  27847. .ce
  27848. When an additional FRMR response must be transmitted by the DCE as a result 
  27849. of the receipt of a P\ bit set to 1 while Timer\ T1 is running, Timer\ 
  27850. T1 will 
  27851. .ce
  27852. continue to run. Upon reception of an FRMR response (even during a frame
  27853. .ce
  27854. rejection condition), the DCE will initiate a resetting procedure by
  27855. .ce
  27856. transmitting an SABM/SABME command as described in \(sc\ 2.4.7.2 above, or will
  27857. .ce
  27858. transmit a DM response to ask the DTE to initiate the data link set\(hyup
  27859. .ce
  27860. procedure as described in \(sc\ 2.4.4.1 and enter the disconnected phase.
  27861. .ce
  27862. .parag
  27863. .ce
  27864. 2.4.8
  27865. .ce
  27866. \fIList of \fR 
  27867. .ce
  27868. \fILAPB system parameters\fR 
  27869. .ce
  27870. .parag
  27871. .ce
  27872. The DCE and DTE system parameters are as follows:
  27873. .ce
  27874. .parag
  27875. .ce
  27876.  
  27877. .ce
  27878. 2.4.8.1
  27879. .ce
  27880. \fITimer\fR 
  27881. .ce
  27882. \fIT1\fR 
  27883. .ce
  27884. .parag
  27885. .ce
  27886. The value of the DTE Timer T1 system parameter may be different
  27887. .ce
  27888. than the value of the DCE Timer T1 system parameter. These values shall 
  27889. be made known to both the DTE and the DCE, and agreed to for a period of 
  27890. time by both the DTE and the DCE. 
  27891. .ce
  27892. .parag
  27893. .ce
  27894. The period of Timer T1, at the end of which retransmission of a frame may 
  27895. be initiated (see \(sc\ 2.4.4 and \(sc\ 2.4.5 above for the DCE), shall 
  27896. take into account whether T1 is started at the beginning or the end of 
  27897. the transmission of a frame. 
  27898. .ce
  27899. .parag
  27900. .ce
  27901. The proper operation of the procedure requires that the transmitter's (DCE 
  27902. or DTE) Timer\ T1 be greater than the maximum time between transmission 
  27903. of a frame (SABM/SABME, DISC, I\ or supervisory command, or DM or FRMR 
  27904. response) 
  27905. .ce
  27906. and the reception of the corresponding frame returned as an answer to that
  27907. .ce
  27908. frame (UA, DM or acknowledging frame). Therefore, the receiver (DCE or DTE)
  27909. .ce
  27910. should not delay the response or acknowledging frame returned to one of the
  27911. .ce
  27912. above frames by more than a value\ T2, where T2 is a system parameter (see
  27913. .ce
  27914. \(sc\ 2.4.8.2).
  27915. .ce
  27916. .parag
  27917. .ce
  27918.  
  27919. .ce
  27920. The DCE will not delay the response or acknowledging frame returned to 
  27921. one of the above DTE frames by more than a period\ T2. 
  27922. .ce
  27923. .parag
  27924. .ce
  27925. 2.4.8.2
  27926. .ce
  27927. \fIParameter T2\fR 
  27928. .ce
  27929. .parag
  27930. .ce
  27931. The value of the DTE parameter T2 may be different than the value of the 
  27932. DCE parameter T2. These values shall be made known to both the DTE and 
  27933. the DCE, and agreed to for a period of time by both the DTE and the DCE. 
  27934. .ce
  27935. .parag
  27936. .ce
  27937.  
  27938. .ce
  27939. The period of parameter T2 shall indicate the amount of time
  27940. .ce
  27941. available at the DCE or DTE before the acknowledging frame must be initiated 
  27942. in order to ensure its receipt by the DTE or DCE, respectively, prior to 
  27943. Timer\ T1 running out at the DTE or DCE (parameter\ T2\ <\ Timer\ T1). 
  27944. .ce
  27945. .parag
  27946. .ce
  27947. \fINote\fR 
  27948. .ce
  27949. \ \(em\ The period of parameter T2 shall take into account the
  27950. .ce
  27951. following timing factors: the transmission time of the acknowledging frame, 
  27952. the propagation time over the access data link, the stated processing times 
  27953. at the DCE and the DTE, and the time to complete the transmission of the 
  27954. frame(s) in the DCE or DTE transmit queue that are neither displaceable 
  27955. or modifiable in an orderly manner. 
  27956. .ce
  27957. .parag
  27958. .ce
  27959.  
  27960. .ce
  27961. Given a value for Timer T1 for the DTE or DCE, the value of parameter T2 
  27962. at the DCE or DTE, respectively, must be no larger than T1 minus\ 2 times 
  27963. the propagation time over the access data link, minus the frame processing 
  27964. time at the DCE, minus the frame processing time at the DTE, and minus 
  27965. the transmission time of the acknowledging frame by the DCE or DTE, respectively. 
  27966. .ce
  27967. .parag
  27968. .ce
  27969.  
  27970. .ce
  27971. 2.4.8.3
  27972. .ce
  27973. \fITimer T3\fR 
  27974. .ce
  27975. .parag
  27976. .ce
  27977. The DCE shall support a Timer T3 system parameter, the value of
  27978. .ce
  27979. which shall be made known to the DTE.
  27980. .ce
  27981. .parag
  27982. .ce
  27983. The period of Timer T3, at the end of which an indication of an
  27984. .ce
  27985. observed excessively long idle channel state condition is passed to the 
  27986. Packet Layer, shall be sufficiently greater than the period of the DCE 
  27987. Timer T1 
  27988. .ce
  27989. (i.e.\ T3\ >\ T1) so that the expiration of T3 provides the desired level of
  27990. .ce
  27991. assurance that the data link channel is in a non\(hyactive, non\(hyoperational 
  27992. state, and is in need of data link set\(hyup before normal data link operation 
  27993. can 
  27994. .ce
  27995. resume.
  27996. .ce
  27997. .parag
  27998. .ce
  27999. 2.4.8.4
  28000. .ce
  28001. \fIMaximum number of attempts\fR 
  28002. .ce
  28003. \fIto complete a\fR 
  28004. .ce
  28005.  
  28006. .ce
  28007. \fItransmission N2\fR 
  28008. .ce
  28009. .parag
  28010. .ce
  28011.  
  28012. .ce
  28013. The value of the DTE N2 system parameter may be different than the value 
  28014. of the DCE N2 system parameter. These values shall be made known to both 
  28015. the DTE and the DCE, and agreed to for a period of time by both the DTE 
  28016. and the DCE. 
  28017. .ce
  28018. .parag
  28019. .ce
  28020. The value of N2 shall indicate the maximum number of attempts made by the 
  28021. DCE or DTE to complete the successful transmission of a frame to the DTE 
  28022. or DCE, respectively. 
  28023. .ce
  28024. .parag
  28025. .ce
  28026. 2.4.8.5
  28027. .ce
  28028. \fIMaximum number of bits in an I frame N1\fR 
  28029. .ce
  28030. .parag
  28031. .ce
  28032. The value of the DTE N1 system parameter may be different than the value 
  28033. of the DCE N1 system parameter. These values shall be made known to both 
  28034. the DTE and the DCE. 
  28035. .ce
  28036. .parag
  28037. .ce
  28038. The values of N1 shall indicate the maximum number of bits in an
  28039. .ce
  28040. I\ frame (excluding flags and 0\ bits inserted for transparency) that the 
  28041. DCE or DTE is willing to accept from the DTE or DCE, respectively. 
  28042. .ce
  28043. .parag
  28044. .ce
  28045. In order to allow for universal operation, a DTE should support a
  28046. .ce
  28047. value of DTE N1 which is not less than 1080\ bits (135\ octets). DTEs should 
  28048. be aware that the network may transmit longer packets (see \(sc\ 5.2), 
  28049. that may result in a data link layer problem. 
  28050. .ce
  28051. .parag
  28052. .ce
  28053.  
  28054. .ce
  28055. All networks shall offer to a DTE which requires it, a value of DCE N1 
  28056. which is greater than or equal to 2072\ bits (259\ octets) plus the length 
  28057. of the address, control and FCS fields at the DTE/DCE interface, and greater 
  28058. than or equal to the maximum length of the data packets which may cross 
  28059. the DTE/DCE 
  28060. .ce
  28061. interface plus the length of the address, control and FCS fields at the 
  28062. DTE/DCE interface. 
  28063. .ce
  28064. .parag
  28065. .ce
  28066. Appendix II provides a description of how the values stated above are  derived.
  28067. .ce
  28068. .parag
  28069. .ce
  28070. 2.4.8.6
  28071. .ce
  28072. \fIMaximum number of \fR 
  28073. .ce
  28074. \fIoutstanding I frames k\fR 
  28075. .ce
  28076. .parag
  28077. .ce
  28078. The value of the DTE k system parameter shall be the same as the
  28079. .ce
  28080. value of the DCE k system parameter. This value shall be agreed to for a
  28081. .ce
  28082. period of time by both the DTE and the DCE.
  28083. .ce
  28084. .parag
  28085. .ce
  28086. The value of k shall indicate the maximum number of sequentially
  28087. .ce
  28088. numbered I\ frames that the DTE or DCE may have outstanding
  28089. .ce
  28090. (i.e.\ unacknowledged) at any given time. The value of k shall never exceed
  28091. .ce
  28092. seven for modulo\ 8 operation, or one hundred and twenty\(hyseven for modulo\ 
  28093. 128 
  28094. .ce
  28095. operation. All networks (DCEs) shall support a value of seven. Other values 
  28096. of k (less than and greater than seven) may also be supported by networks 
  28097. .ce
  28098. (DCEs).
  28099. .ce
  28100. .parag
  28101. .ce
  28102. .line
  28103. .ce
  28104. \fBMONTAGE : \(sc 2.5 de cette Recommandation sur le reste de cette page\fR 
  28105. .ce
  28106. .parag
  28107. .ce
  28108.  
  28109. .ce
  28110. .line
  28111. .ad r
  28112. \fBTable 6/X.25 [T6.25], p.\fR 
  28113. .sp 1P
  28114. .RT
  28115. .ad b
  28116. .RT
  28117. .sp 1P
  28118. .LP
  28119. .sp 5
  28120. 2.3.4.2
  28121.     \fIReceive ready (RR)\fR \fI command and response\fR 
  28122. .sp 9p
  28123. .RT
  28124. .PP
  28125. The receive ready (RR) supervisory frame is used by the DCE
  28126. or DTE to:
  28127. .RT
  28128. .LP
  28129.     1)
  28130.     indicate it is ready to receive an I frame; and
  28131. .LP
  28132.     2)
  28133.     acknowledge previously received I frames numbered up to and
  28134. including N(R)\ \(em\ 1.
  28135. .PP
  28136. An RR frame may be used to indicate the clearance of a busy
  28137. condition that was reported by the earlier transmission of an RNR frame 
  28138. by that same station (DCE or\ DTE). In addition to indicating the DCE or 
  28139. DTE status, the RR command with the P\ bit set to\ 1 may be used by the 
  28140. DCE or DTE to ask for the status of the DTE or DCE, respectively. 
  28141. .bp
  28142. .sp 1P
  28143. .LP
  28144. 2.3.4.3
  28145.     \fIReceive not ready (RNR) command and response\fR 
  28146. .sp 9p
  28147. .RT
  28148. .PP
  28149. The receive not ready (RNR) supervisory frame is used by the DCE or DTE 
  28150. to indicate a busy condition; i.e.\ temporary inability to accept 
  28151. additional incoming I\ frames. I\ frames numbered up to and including N(R)\ 
  28152. \(em\ 1 
  28153. are acknowledged. I\ frame N(R) and any subsequent I\ frames received, if any,
  28154. are not acknowledged; the acceptance status of these I\ frames will be 
  28155. indicated in subsequent exchanges. 
  28156. .PP
  28157. In addition to indicating the DCE or DTE status, the RNR command with the 
  28158. P bit set to\ 1 may be used by an DCE or DTE to ask for the status of the 
  28159. DTE or DCE, respectively.
  28160. .RT
  28161. .sp 1P
  28162. .LP
  28163. 2.3.4.4
  28164.     \fIReject (REJ) command and response\fR 
  28165. .sp 9p
  28166. .RT
  28167. .PP
  28168. The reject (REJ) supervisory frame is used by the DCE or DTE to request 
  28169. transmission of I\ frames starting with the frame numbered N(R). 
  28170. I\ frames numbered N(R)\ \(em\ 1 and below are acknowledged. Additional 
  28171. I\ frames 
  28172. pending initial transmission may be transmitted following the retransmitted
  28173. I\ frame(s).
  28174. .PP
  28175. Only one REJ exception condition for a given direction of information transfer 
  28176. may be established at any time. The REJ exception condition is cleared 
  28177. (reset) upon the receipt of an I\ frame with an N(S) equal to the N(R) 
  28178. of the 
  28179. REJ\ frame.
  28180. .PP
  28181. An REJ frame may be used to indicate the clearance of a busy condition 
  28182. that was reported by the earlier transmission of an RNR frame by that same 
  28183. station (DCE or\ DTE). In addition to indicating the DCE or DTE status, the
  28184. REJ\ command with the P bit set to\ 1 may be used by the DCE or\ DTE to ask for
  28185. the status of the DTE or\ DCE, respectively.
  28186. .RT
  28187. .sp 1P
  28188. .LP
  28189. \fR 2.3.4.5
  28190.      \fISet asynchronous balanced mode (SABM)\fR \fIcommand/\fR \fISet asynchronous 
  28191. balanced mode extended (SABME)\fR 
  28192. \fIcommand (subscription time option)\fR 
  28193. .sp 9p
  28194. .RT
  28195. .PP
  28196. The SABM unnumbered command is used to place the addressed DCE or DTE in 
  28197. an asynchronous balanced mode (ABM) information transfer phase where all 
  28198. command/response control fields will be one\ octet in length. 
  28199. .PP
  28200. The SABME unnumbered command is used to place the addressed DCE or DTE 
  28201. in an asynchronous balanced mode\ (ABM) information transfer phase where 
  28202. numbered command/response control fields will be two octets in length, and
  28203. unnumbered command/response control fields will be one octet in length.
  28204. .PP
  28205. No information field is permitted with the SABM or SABME command. The transmission 
  28206. of a SABM/SABME command indicates the clearance of a busy 
  28207. condition that was reported by the earlier trans
  28208. mission\ of an RNR\ frame by   that
  28209. same station (DCE or\ DTE). The DCE or DTE confirms acceptance of SABM/SABME
  28210. [modulo\ 8 (basic) operation/modulo\ 128 (extended) operation] command by the
  28211. transmission, at the first opportunity, of a UA\ response. Upon acceptance of
  28212. this command, the DCE or DTE send state variable\ V(S) and receive state
  28213. variable V(R) are set to\ 0.
  28214. .PP
  28215. Previously transmitted I\ frames that are unacknowledged when this
  28216. command is actioned remain unac
  28217. knowledged.\ It is the responsibility of a
  28218. higher layer (e.g.\ Packet Layer or MLP) to recover from the possible loss of
  28219. .PP
  28220. the contents (e.g.\ packets) of such I\ frames.
  28221. .PP
  28222. \fINote\fR \ \(em\ The mode of operation of a data link [basic (modulo 8) or
  28223. extended (modulo\ 128)] is determined at subscription time and is only 
  28224. changed by going through a new subscription process. 
  28225. .RT
  28226. .sp 1P
  28227. .LP
  28228. 2.3.4.6
  28229.     \fIDisconnect (DISC)\fR \fI command\fR 
  28230. .sp 9p
  28231. .RT
  28232. .PP
  28233. The DISC unnumbered command is used to terminate the mode
  28234. previously set. It is used to inform the DCE or DTE receiving the DISC 
  28235. command that the DTE or DCE sending the DISC command is suspending operation. 
  28236. No 
  28237. information field is permitted with the DISC command. Prior to actioning the
  28238. DISC command, the DCE or DTE receiving the DISC command confirms the acceptance 
  28239. of the DISC command by the transmission of a UA response. The DTE or DCE 
  28240. sending the DISC command enters the disconnected phase when it receives the
  28241. acknowledging UA response.
  28242. .bp
  28243. .PP
  28244. Previously transmitted I frames that are unacknowledged when this
  28245. command is actioned remain unacknowledged. It is the responsibility of 
  28246. a higher layer (e.g.\ Packet Layer or MLP) to recover from the possible 
  28247. loss of the 
  28248. contents (e.g.,\ packets) of such I frames.
  28249. .RT
  28250. .sp 1P
  28251. .LP
  28252. 2.3.4.7
  28253.     \fIUnnumbered acknowledgement (UA)\fR \fI response\fR 
  28254. .sp 9p
  28255. .RT
  28256. .PP
  28257. The UA unnumbered response is used by the DCE or DTE to acknowledge the 
  28258. receipt and acceptance of the mode\(hysetting commands. Received mode\(hysetting 
  28259. commands are not actioned until the UA response is transmitted. The 
  28260. transmission of a UA response indicates the clearance of a busy condition 
  28261. that was reported by the earlier transmission of an RNR frame by that same 
  28262. station (DCE or DTE). No information field is permitted with the UA response. 
  28263. .RT
  28264. .sp 1P
  28265. .LP
  28266. 2.3.4.8
  28267.     \fIDisconnected mode (DM)\fR \fI response\fR 
  28268. .sp 9p
  28269. .RT
  28270. .PP
  28271. The DM unnumbered response is used to report a status where the DCE or 
  28272. DTE is logically disconnected from the data link, and is in the disconnected 
  28273. phase. The DM response may be sent to indicate that the DCE or DTE has 
  28274. entered the disconnected phase without benefit of having received a DISC 
  28275. command, or, if sent in response to the reception of a mode setting command, 
  28276. is sent to 
  28277. inform the DTE or DCE that the DCE or DTE, respectively, is still in the
  28278. disconnected phase and cannot execute the set mode command. No information
  28279. field is permitted with the DM response.
  28280. .PP
  28281. A DCE or DTE in a disconnected phase will monitor received commands
  28282. and will react to an SABM/SABME command as outlined in \(sc\ 2.4.4 below, 
  28283. and will respond with a DM response with the F bit set to\ 1 to any other 
  28284. command 
  28285. received with the P\ bit set to\ 1.
  28286. .RT
  28287. .sp 1P
  28288. .LP
  28289. 2.3.4.9
  28290.     \fIFrame reject (FRMR)\fR \fI response\fR 
  28291. .sp 9p
  28292. .RT
  28293. .PP
  28294. The FRMR unnumbered response is used by the DCE or DTE to report an error 
  28295. condition not recoverable by retransmission of the identical frame; 
  28296. i.e.\ at least one of the following conditions, which results from the 
  28297. receipt of a valid frame: 
  28298. .RT
  28299. .LP
  28300.     1)
  28301.     the receipt of a command or response control field that is
  28302. undefined or not implemented;
  28303. .LP
  28304.     2)
  28305.     the receipt of an I frame with an information field which
  28306. exceeds the maximum established length;
  28307. .LP
  28308.     3)
  28309.     the receipt of an invalid N(R); or
  28310. .LP
  28311.     4)
  28312.     the receipt of a frame with an information field which is
  28313. not permitted or the receipt of a supervisory or unnumbered
  28314. frame with incorrect length.
  28315. .PP
  28316. An undefined or not implemented control field is any of the
  28317. control field encodings that are not identified in Tables\ 5/X.25 or\ 6/X.25.
  28318. .PP
  28319. A valid N(R) must be within the range from the lowest send sequence
  28320. number N(S) of the still unacknowledged frame(s) to the current DCE send 
  28321. state variable inclusive (or to the current internal variable \fIx\fR if 
  28322. the DCE is in 
  28323. the timer recovery condition as described in \(sc\ 2.4.5.9).
  28324. .PP
  28325. An information field which immediately follows the control field, and consists 
  28326. of\ 3 or 5\ octets [modulo\ 8 (basic) operation or modulo\ 128 (extended) 
  28327. operation, respectively], is returned with this response and provides the 
  28328. reason for the FRMR response. These formats are given in Tables\ 7/X.25
  28329. and\ 8/X.25.
  28330. .RT
  28331. .sp 1P
  28332. .LP
  28333. 2.3.5
  28334.     \fIException condition reporting and recovery\fR 
  28335. .sp 9p
  28336. .RT
  28337. .PP
  28338. The error recovery procedures which are available to effect
  28339. recovery following the detection/occurrence of an 
  28340. exception condition
  28341. at the Data Link Layer are described below. Exception conditions described 
  28342. are those situations which may occur as the result of transmission errors, 
  28343. DCE or DTE malfunction, or operational situations. 
  28344. .RT
  28345. .sp 1P
  28346. .LP
  28347. 2.3.5.1
  28348.     \fIBusy condition\fR 
  28349. .sp 9p
  28350. .RT
  28351. .PP
  28352. The busy condition results when the DCE or DTE is temporarily
  28353. unable to continue to receive I frames due to internal constraints,
  28354. e.g.\ receive buffering limitations. In this case an RNR frame is transmitted
  28355. from the busy DCE or DTE. I\ frames pending transmission may be transmitted 
  28356. from the busy DCE or DTE prior to or following the RNR\ frame. 
  28357. .PP
  28358. An indication that the busy condition has cleared is communicated by the 
  28359. transmission of a UA (only in response to a SABM/SABME command), RR, REJ 
  28360. or SABM/SABME (modulo\ 8/modulo\ 128) frame. 
  28361. .bp
  28362. .RT
  28363. .ce
  28364. .line
  28365. .ce
  28366. \fBTable 7/X.25 [T7.25], p.\fR 
  28367. .ce
  28368. .line
  28369. .ce
  28370. \fBTable 8/X.25 [T8.25], p.\fR 
  28371. .ce
  28372. 2.3.5.2
  28373. .ce
  28374. \fIN(S) sequence error condition\fR 
  28375. .ce
  28376. .parag
  28377. .ce
  28378. The information field of all I frames received whose N(S) does not equal 
  28379. the receive state variable V(R) will be discarded. 
  28380. .ce
  28381. .parag
  28382. .ce
  28383. An N(S) sequence error exception condition occurs in the receiver when 
  28384. an I\ frame received contains an N(S) which is not equal to the receive 
  28385. state 
  28386. .ce
  28387. variable V(R) at the receiver. The receiver does not acknowledge (increment 
  28388. its receive state variable) the I\ frame causing the sequence error, or 
  28389. any I\ frame which may follow, until an I\ frame with the correct N(S) 
  28390. is received. 
  28391. .ce
  28392. .parag
  28393. .ce
  28394.  
  28395. .ce
  28396. A DCE or DTE which receives one or more valid I frames having sequence 
  28397. errors or subsequent supervisory frames (RR, RNR and REJ) shall accept 
  28398. the 
  28399. .ce
  28400. control information contained in the N(R) field and the P or F bit to perform 
  28401. data link control functions; e.g.\ to receive acknowledgement of previously 
  28402. .ce
  28403. transmitted I\ frames and to cause the DCE or DTE to respond (P bit set to 1).
  28404. .ce
  28405. .parag
  28406. .ce
  28407.  
  28408. .ce
  28409. The means specified in \(sc\(sc\ 2.3.5.2.1 and 2.3.5.2.2 shall be available 
  28410. for initiating the retransmission of lost or errored I\ frames following 
  28411. the 
  28412. .ce
  28413. occurrence of an N(S) sequence error condition.
  28414. .ce
  28415. .parag
  28416. .ce
  28417. 2.3.5.2.1
  28418. .ce
  28419. \fIREJ recovery\fR 
  28420. .ce
  28421. .parag
  28422. .ce
  28423. The REJ frame is used by a receiving DCE or DTE to initiate a
  28424. .ce
  28425. recovery (retransmission) following the detection of an N(S) sequence error.
  28426. .ce
  28427. .parag
  28428. .ce
  28429.  
  28430. .ce
  28431. With respect to each direction of transmission on the data link, only one 
  28432. \*Qsent REJ\*U exception condition from a DCE or DTE, to a DTE or DCE, 
  28433. is 
  28434. .ce
  28435. established at a time. A \*Qsent REJ\*U exception condition is cleared when the
  28436. .ce
  28437. requested I\ frame is received.
  28438. .ce
  28439. .parag
  28440. .ce
  28441.  
  28442. .ce
  28443. A DCE or DTE receiving a REJ frame initiates sequential
  28444. .ce
  28445. (re\(hy)transmission of I\ frames starting with the I\ frame indicated 
  28446. by the N(R) contained in the REJ frame. The retransmitted frames may contain 
  28447. an N(R) and a P bit that are updated from, and therefore different from, 
  28448. the ones contained in the originally transmitted I\ frames. 
  28449. .ce
  28450. .parag
  28451. .ce
  28452. 2.3.5.2.2
  28453. .ce
  28454. \fITime\(hyout recovery\fR 
  28455. .ce
  28456. .parag
  28457. .ce
  28458. If a DCE or DTE, due to a transmission error, does not receive (or receives 
  28459. and discards) a single I\ frame or the last I\ frame(s) in a sequence of 
  28460. I\ frames, it will not detect an N(S) sequence error condition and, therefore, 
  28461. will not transmit a REJ frame. The DTE or DCE which transmitted the 
  28462. .ce
  28463. unacknowledged I\ frame(s) shall, following the completion of a system 
  28464. specified time\(hyout period (see \(sc\(sc\ 2.4.5.1 and 2.4.5.9 below), 
  28465. take appropriate recovery action to determine at which I\ frame retransmission 
  28466. must begin. The 
  28467. .ce
  28468. retransmitted frame(s) may contain an N(R) and a P bit that is updated from,
  28469. .ce
  28470. and therefore different from, the ones contained in the originally transmitted 
  28471. frame(s). 
  28472. .ce
  28473. .parag
  28474. .ce
  28475. 2.3.5.3
  28476. .ce
  28477. \fIInvalid frame\fR 
  28478. .ce
  28479. \fI condition\fR 
  28480. .ce
  28481. .parag
  28482. .ce
  28483. Any frame which is invalid will be discarded, and no action is
  28484. .ce
  28485. taken as the result of that frame. An invalid frame is defined as one
  28486. .ce
  28487. which:
  28488. .ce
  28489. .parag
  28490. .ce
  28491. a)
  28492. .ce
  28493. is not properly bounded by two flags;
  28494. .ce
  28495. .parag
  28496. .ce
  28497. b)
  28498. .ce
  28499. in basic (modulo 8) operation, contains fewer than 32 bits
  28500. .ce
  28501. between flags; in extended (modulo\ 128) operation, contains
  28502. .ce
  28503. fewer than 40\ bits between flags of frames that contain sequence
  28504. .ce
  28505. numbers or 32\ bits between flags of frames that do not contain
  28506. .ce
  28507. sequence numbers;
  28508. .ce
  28509. .parag
  28510. .ce
  28511. c)
  28512. .ce
  28513. contains a Frame Check Sequence (FCS) error; or
  28514. .ce
  28515. .parag
  28516. .ce
  28517. d)
  28518. .ce
  28519. contains an address other than A or B (for single link
  28520. .ce
  28521. operation) or other than C or D (for multilink operation).
  28522. .ce
  28523. .parag
  28524. .ce
  28525.  
  28526. .ce
  28527. For those networks that are octet aligned, a detection of
  28528. .ce
  28529. non\(hyoctet alignment may be made at the Data Link Layer by adding a frame
  28530. .ce
  28531. validity check that requires the number of bits between the opening flag and
  28532. .ce
  28533. the closing flag, excluding bits inserted for transparency, to be an integral 
  28534. number of octets in length, or the frame is considered invalid. 
  28535. .ce
  28536. .parag
  28537. .ce
  28538. 2.3.5.4
  28539. .ce
  28540. \fIFrame rejection\fR 
  28541. .ce
  28542. \fI condition\fR 
  28543. .ce
  28544. .parag
  28545. .ce
  28546. A frame rejection condition is established upon the receipt of an error\(hyfree 
  28547. frame with one of the conditions listed in \(sc\ 2.3.4.9 above. 
  28548. .ce
  28549. .parag
  28550. .ce
  28551.  
  28552. .ce
  28553. At the DCE or DTE, this frame rejection exception condition is
  28554. .ce
  28555. reported by an FRMR response for appropriate DTE or DCE action, respectively. 
  28556. Once a DCE has established such an exception condition, no additional I\ 
  28557. frames are accepted until the condition is reset by the DTE, except for 
  28558. examination of the P bit. The FRMR response may be repeated at each opportunity, 
  28559. as specified in \(sc\ 2.4.7.3, until recovery is effected by the DTE, or 
  28560. until the DCE initiates its own recovery in case the DTE does not respond. 
  28561. .ce
  28562. .parag
  28563. .ce
  28564. 2.3.5.5
  28565. .ce
  28566. \fIExcessive idle channel state condition on incoming\fR 
  28567. .ce
  28568.  
  28569. .ce
  28570. \fIchannel\fR 
  28571. .ce
  28572. .parag
  28573. .ce
  28574. Upon detection of an idle channel state condition (see \(sc\ 2.2.12.2 above) 
  28575. on the incoming channel, the DCE shall wait for a period\ T3 (see 
  28576. .ce
  28577. \(sc\ 2.4.8.3 below) without taking any specific action, waiting for detection 
  28578. of a return to the active channel state (i.e.,\ detection of at least one 
  28579. flag 
  28580. .ce
  28581. sequence). After the period\ T3, the DCE shall notify the higher layer 
  28582. (e.g.\ the Packet Layer or the MLP) of the excessive idle channel state 
  28583. condition, but 
  28584. .ce
  28585. shall not take any action that would preclude the DTE from establishing the
  28586. .ce
  28587. data link by normal data link set\(hyup procedures.
  28588. .ce
  28589. .parag
  28590. .ce
  28591. \fINote\fR 
  28592. .ce
  28593. \ \(em\ Other actions to be taken by the DCE at the Data Link Layer upon 
  28594. expiration of period\ T3 is a subject for further study. 
  28595. .ce
  28596. .parag
  28597. .ce
  28598.  
  28599. .ce
  28600. 2.4
  28601. .ce
  28602. \fIDescription of the \fR 
  28603. .ce
  28604. \fILAPB procedure\fR 
  28605. .ce
  28606. .parag
  28607. .ce
  28608. 2.4.1
  28609. .ce
  28610. \fILAPB basic and extended modes of operation\fR 
  28611. .ce
  28612. .parag
  28613. .ce
  28614. In accordance with the system choice made by the DTE at
  28615. .ce
  28616. subscription time, the DCE will either support modulo\ 8 (basic) operation or
  28617. .ce
  28618. will support modulo\ 128 (extended) operation. Changing from basic operation 
  28619. to extended operation, or vice versa, in the DCE requires resubscription 
  28620. by the 
  28621. .ce
  28622. DTE for the desired service, and is not supported dynamically.
  28623. .ce
  28624. .parag
  28625. .ce
  28626. Table 5/X.25 indicates the command and response control field formats used 
  28627. with the basic (modulo\ 8) service. The mode\(hysetting command employed 
  28628. to 
  28629. .ce
  28630. initialize (set up) or reset the basic mode is the SABM command. Table 
  28631. 6/X.25 indicates the command and response control field formats used with 
  28632. the extended (modulo\ 128) service. The mode\(hysetting command employed 
  28633. to initialize (set up) or reset the extended mode is the SABME command. 
  28634. .ce
  28635. .parag
  28636. .ce
  28637. 2.4.2
  28638. .ce
  28639. \fILAPB procedure for addressing\fR 
  28640. .ce
  28641. .parag
  28642. .ce
  28643. The address field identifies a frame as either a command or a
  28644. .ce
  28645. response. A command frame contains the address of the DCE or DTE to which 
  28646. the command is being sent. A response frame contains the address of the 
  28647. DCE or DTE sending the frame. 
  28648. .ce
  28649. .parag
  28650. .ce
  28651. In order to allow differentiation between single link operation and
  28652. .ce
  28653. the optional multilink operation for diagnostic and/or maintenance reasons,
  28654. .ce
  28655. different address pair encodings are assigned to data links operating with
  28656. .ce
  28657. multilink procedure compared to data links operating with the single link
  28658. .ce
  28659. procedure.
  28660. .ce
  28661. .parag
  28662. .ce
  28663. Frames containing commands transferred from the DCE to the DTE will
  28664. .ce
  28665. contain the address\ A for the single link operation and address\ C for the
  28666. .ce
  28667. multilink operation.
  28668. .ce
  28669. .parag
  28670. .ce
  28671. Frames containing responses transferred from the DCE to the DTE will contain 
  28672. the address\ B for the single link operation and address\ D for the 
  28673. .ce
  28674. multilink operation.
  28675. .ce
  28676. .parag
  28677. .ce
  28678.  
  28679. .ce
  28680. Frames containing commands transferred from the DTE to the DCE shall contain 
  28681. the address\ B for the single link operation and address\ D for the 
  28682. .ce
  28683. multilink operation.
  28684. .ce
  28685. .parag
  28686. .ce
  28687. Frames containing responses transferred from the DTE to the DCE shall contain 
  28688. the address\ A for the single link operation and address\ C for the 
  28689. .ce
  28690. multilink operation.
  28691. .ce
  28692. .parag
  28693. .ce
  28694. These addresses are coded as follows:
  28695. .ce
  28696. .parag
  28697. .ce
  28698. Address
  28699. .ce
  28700. 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8
  28701. .ce
  28702. .parag
  28703. .ce
  28704. Single link operation
  28705. .ce
  28706. \ \ A
  28707. .ce
  28708. 1\ 1\ 0\ 0\ 0\ 0\ 0\ 0
  28709. .ce
  28710. .line
  28711. .ce
  28712. \ \ B
  28713. .ce
  28714. 1\ 0\ 0\ 0\ 0\ 0\ 0\ 0
  28715. .ce
  28716. .parag
  28717. .ce
  28718. Multilink operation
  28719. .ce
  28720. \ \ C
  28721. .ce
  28722. 1\ 1\ 1\ 1\ 0\ 0\ 0\ 0
  28723. .ce
  28724. .line
  28725. .ce
  28726. \ \ D
  28727. .ce
  28728. 1\ 1\ 1\ 0\ 0\ 0\ 0\ 0
  28729. .ce
  28730. .parag
  28731. .ce
  28732. \fINote\fR 
  28733. .ce
  28734. \ \(em\ The DCE will discard all frames received with an address other 
  28735. than\ A or\ B (single link operation), or\ C or\ D (multilink operation). 
  28736. .ce
  28737. .parag
  28738. .ce
  28739. 2.4.3
  28740. .ce
  28741. \fILAPB procedure for the use of the P/F bit\fR 
  28742. .ce
  28743. .parag
  28744. .ce
  28745. The DCE or DTE receiving an SABM/SABME, DISC, supervisory command or I\ 
  28746. frame with the P\ bit set to\ 1 will set the F\ bit to\ 1 in the next response 
  28747. frame it transmits. 
  28748. .ce
  28749. .parag
  28750. .ce
  28751. The response frame returned by the DCE to an SABM/SABME or DISC
  28752. .ce
  28753. command with the P\ bit set to\ 1 will be a UA or DM response with the 
  28754. F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  28755. with the P\ bit set to\ 1, received during the information transfer phase, 
  28756. will be an RR, REJ, RNR or FRMR response with the F\ bit set to\ 1. The 
  28757. response frame returned by the 
  28758. .ce
  28759. DCE to a supervisory command with the P\ bit set to\ 1, received during the
  28760. .ce
  28761. information transfer phase, will be an RR, REJ, RNR or FRMR response with 
  28762. the F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  28763. or 
  28764. .ce
  28765. supervisory frame with the P\ bit set to\ 1, received during the disconnected
  28766. .ce
  28767. phase, will be a DM response with the F\ bit set to\ 1.
  28768. .ce
  28769. .parag
  28770. .ce
  28771. The P bit may be used by the DCE in conjunction with the timer
  28772. .ce
  28773. recovery condition (see \(sc\ 2.4.5.9 below).
  28774. .ce
  28775. .parag
  28776. .ce
  28777. \fINote\fR 
  28778. .ce
  28779. \ \(em\ Other use of the P bit by the DCE is a subject for further
  28780. .ce
  28781. study.
  28782. .ce
  28783. .parag
  28784. .ce
  28785. 2.4.4
  28786. .ce
  28787. \fILAPB procedure for data link set\(hyup and disconnection\fR 
  28788. .ce
  28789. .parag
  28790. .ce
  28791.  
  28792. .ce
  28793. 2.4.4.1
  28794. .ce
  28795. \fIData link set\(hyup\fR 
  28796. .ce
  28797. .parag
  28798. .ce
  28799. The DCE will indicate that it is able to set up the data link by
  28800. .ce
  28801. transmitting contiguous flags (active channel state).
  28802. .ce
  28803. .parag
  28804. .ce
  28805. Either the DTE or the DCE may initiate data link set\(hyup. Prior to
  28806. .ce
  28807. initiation of data link set\(hyup, either the DCE or the DTE may initiate data
  28808. .ce
  28809. link
  28810. .ce
  28811. disconnection (see \(sc\ 2.4.4.3) for the purpose of insuring that the 
  28812. DCE and the DTE are in the same phase. The DCE may also transmit an unsolicited 
  28813. DM response to request the DTE to initiate data link set\(hyup. 
  28814. .ce
  28815. .parag
  28816. .ce
  28817. The DTE shall initiate data link set\(hyup by transmitting an SABM/SABME 
  28818. command to the DCE. If, upon receipt of the SABM/SABME command correctly, 
  28819. the DCE determines that it can enter the information transfer phase, it 
  28820. will return a UA response to the DTE, will reset its send and receive state 
  28821. variables V(S) and V(R) to zero, and will consider that the data link is 
  28822. set up. If, upon 
  28823. .ce
  28824. receipt
  28825. .ce
  28826. of the SABM/SABME command correctly, the DCE determines that it cannot enter
  28827. .ce
  28828. the information transfer phase, it will return a DM response to the DTE as a
  28829. .ce
  28830. denial to the data link set\(hyup initialization and will consider that the
  28831. .ce
  28832. data link is
  28833. .ce
  28834. \fInot\fR 
  28835. .ce
  28836.  set up. In order to avoid misinterpretation of the DM response received, 
  28837. it is suggested that the DTE always sends its SABM/SABME command with the 
  28838. P\ bit set to\ 1. Otherwise, it is not possible to differentiate a DM response 
  28839. intended as a denial to data link set\(hyup from a DM response that is 
  28840. issued in a separate unsolicited sense as a request for a mode\(hysetting 
  28841. command (as described 
  28842. .ce
  28843. in\ \(sc\ 2.4.4.4.2).
  28844. .ce
  28845. .parag
  28846. .ce
  28847. The DCE will initiate data link set\(hyup by transmitting an SABM/SABME 
  28848. command to the DTE and starting its Timer\ T1 in order to determine when 
  28849. too 
  28850. .ce
  28851. much time has elapsed waiting for a reply (see \(sc\ 2.4.8.1 below). Upon 
  28852. reception of a UA response from the DTE, the DCE will reset its send and 
  28853. receive state 
  28854. .ce
  28855. variables\ V(S) and\ V(R) to zero, will stop its Timer\ T1, and will consider 
  28856. that the data link is set up. Upon reception of a DM response from the 
  28857. DTE as a 
  28858. .ce
  28859. denial
  28860. .ce
  28861. to the data link set\(hyup initialization, the DCE will stop its Timer\ 
  28862. T1 and will consider that the data link is \fInot\fR 
  28863. .ce
  28864. set up.
  28865. .ce
  28866. .parag
  28867. .ce
  28868.  
  28869. .ce
  28870. The DCE, having sent the SABM/SABME command, will ignore and discard any 
  28871. frames except an SABM/SABME or DISC command, or a UA or DM response 
  28872. .ce
  28873. received from the DTE. The receipt of an SABM/SABME or DISC command from the
  28874. .ce
  28875. DTE will result in a collision situation that is resolved per \(sc\ 2.4.4.5 
  28876. below. Frames other than the UA and DM responses sent in response to a 
  28877. received 
  28878. .ce
  28879. SABM/SABME or DISC command will be sent only after the data link is set 
  28880. up and if no outstanding SABM/SABME command exists. 
  28881. .ce
  28882. .parag
  28883. .ce
  28884. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  28885. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  28886. .ce
  28887. resend the SABM/SABME command and will restart Timer\ T1. After transmission 
  28888. of the SABM/SABME command N2 times by the DCE, appropriate higher layer 
  28889. recovery action will be initiated. The value of N2 is defined in \(sc\ 
  28890. 2.4.8.4 below. 
  28891. .ce
  28892. .parag
  28893. .ce
  28894. 2.4.4.2
  28895. .ce
  28896. \fIInformation transfer phase\fR 
  28897. .ce
  28898. .parag
  28899. .ce
  28900. After having transmitted the UA response to the SABM/SABME command or having 
  28901. received the UA response to a transmitted SABM/SABME command, the DCE will 
  28902. accept and transmit I and supervisory frames according to the procedures 
  28903. described in \(sc\ 2.4.5 below. 
  28904. .ce
  28905. .parag
  28906. .ce
  28907.  
  28908. .ce
  28909. When receiving the SABM/SABME command while in the information
  28910. .ce
  28911. transfer phase, the DCE will conform to the data link resetting procedure
  28912. .ce
  28913. described in \(sc\ 2.4.7 below.
  28914. .ce
  28915. .parag
  28916. .ce
  28917. 2.4.4.3
  28918. .ce
  28919. \fIData link disconnection\fR 
  28920. .ce
  28921. .parag
  28922. .ce
  28923. The DTE shall initiate a disconnect of the data link by
  28924. .ce
  28925. transmitting a DISC command to the DCE. On correctly receiving a DISC command 
  28926. in the information transfer phase, the DCE will send a UA response and 
  28927. enter 
  28928. .ce
  28929. the disconnected phase. On correctly receiving a DISC command in the
  28930. .ce
  28931. disconnected phase, the DCE will send a DM response and remain in the
  28932. .ce
  28933. disconnected phase. In order to avoid misinterpretation of the DM response
  28934. .ce
  28935. received, it is suggested that the DTE always sends its DISC command with 
  28936. the P\ bit set to\ 1. Otherwise, it is not possible to differentiate a 
  28937. DM response 
  28938. .ce
  28939. intended as an indication that the DCE is already in the disconnected phase
  28940. .ce
  28941. from a DM response that is issued in a separate unsolicited sense as a 
  28942. request for a mode\(hysetting command (as described in \(sc\ 2.4.4.4.2). 
  28943. .ce
  28944. .parag
  28945. .ce
  28946.  
  28947. .ce
  28948. The DCE will initiate a disconnect of the data link by transmitting a DISC 
  28949. command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 below). 
  28950. Upon reception of an UA response from the DTE, the DCE will stop its Timer\ 
  28951. T1 and 
  28952. .ce
  28953. will enter the disconnected phase. Upon reception of a DM response from 
  28954. the DTE as an indication that the DTE was already in the disconnected phase, 
  28955. the DCE 
  28956. .ce
  28957. will stop its Timer\ T1 and will enter the disconnected phase.
  28958. .ce
  28959. .parag
  28960. .ce
  28961. The DCE, having sent the DISC command, will ignore and discard any
  28962. .ce
  28963. frames except an SABM/SABME or DISC command, or a UA or DM response received
  28964. .ce
  28965. from the DTE. The receipt of an SABM/SABME or DISC command from the DTE will
  28966. .ce
  28967. result in a collision situation that is resolved per \(sc\ 2.4.4.5 below.
  28968. .ce
  28969. .parag
  28970. .ce
  28971.  
  28972. .ce
  28973. After the DCE sends the DISC command, if a UA or DM response is not
  28974. .ce
  28975. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  28976. resend the DISC command and will restart Timer\ T1. After transmission 
  28977. of the DISC 
  28978. .ce
  28979. command N2 times by the DCE, appropriate higher layer recovery action will 
  28980. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  28981. .ce
  28982. .parag
  28983. .ce
  28984. 2.4.4.4
  28985. .ce
  28986. \fIDisconnected phase\fR 
  28987. .ce
  28988. .parag
  28989. .ce
  28990. 2.4.4.4.1
  28991. .ce
  28992. After having received a DISC command from the DTE and
  28993. .ce
  28994. returned a UA response to the DTE, or having received the UA response to a
  28995. .ce
  28996. transmitted DISC command, the DCE will enter the disconnected phase.
  28997. .ce
  28998. .parag
  28999. .ce
  29000. In the disconnected phase, the DCE may initiate data link set\(hyup. In 
  29001. the disconnected phase, the DCE will react to the receipt of an SABM/SABME 
  29002. command as described in \(sc\ 2.4.4.1 above and will transmit a DM response 
  29003. in 
  29004. .ce
  29005. answer to a received DISC command. When receiving any other command (defined, 
  29006. or undefined or not implemented) with the P\ bit set to\ 1, the DCE will 
  29007. transmit a DM response with the F\ bit set to\ 1. Other frames received 
  29008. in the 
  29009. .ce
  29010. disconnected phase will be ignored by the DCE.
  29011. .ce
  29012. .parag
  29013. .ce
  29014. 2.4.4.4.2
  29015. .ce
  29016. When the DCE enters the disconnected phase after
  29017. .ce
  29018. detecting error conditions as listed in \(sc\ 2.4.6 below, or after an internal
  29019. .ce
  29020. malfunction, it may indicate this by sending a DM response rather than 
  29021. a DISC command. In these cases, the DCE will transmit a DM response and 
  29022. start its 
  29023. .ce
  29024. Timer\ T1 (see \(sc\ 2.4.8.1 below).
  29025. .ce
  29026. .parag
  29027. .ce
  29028. If Timer T1 runs out before the reception of an SABM/SABME or DISC command 
  29029. from the DTE, the DCE will retransmit the DM response and restart 
  29030. .ce
  29031. Timer\ T1. After transmission of the DM response N2 times, the DCE will 
  29032. remain in the disconnected phase and appropriate recovery actions will 
  29033. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  29034. .ce
  29035. .parag
  29036. .ce
  29037. Alternatively, after an internal malfunction, the DCE may either
  29038. .ce
  29039. initiate a data link resetting procedure (see \(sc\ 2.4.7 below) or disconnect 
  29040. the data link (see \(sc\ 2.4.4.3 above) prior to initiating a data link 
  29041. set\(hyup 
  29042. .ce
  29043. procedure (see \(sc\ 2.4.4.1 above).
  29044. .ce
  29045. .parag
  29046. .ce
  29047. 2.4.4.5
  29048. .ce
  29049. \fICollision of unnumbered commands\fR 
  29050. .ce
  29051. .parag
  29052. .ce
  29053. Collision situations shall be resolved in the following way:
  29054. .ce
  29055. .parag
  29056. .ce
  29057. 2.4.4.5.1
  29058. .ce
  29059. If the sent and received unnumbered commands are the
  29060. .ce
  29061. same, the DCE and the DTE shall each send the UA response at the earliest
  29062. .ce
  29063. possible opportunity. The DCE shall enter the indicated phase either,
  29064. .ce
  29065. .parag
  29066. .ce
  29067.  
  29068. .ce
  29069. 1)
  29070. .ce
  29071. after receiving the UA response,
  29072. .ce
  29073. .parag
  29074. .ce
  29075. 2)
  29076. .ce
  29077. after sending the UA response, or
  29078. .ce
  29079. .parag
  29080. .ce
  29081. 3)
  29082. .ce
  29083. after timing out waiting for the UA response having sent a
  29084. .ce
  29085. UA response.
  29086. .ce
  29087. .parag
  29088. .ce
  29089. In the case of 2) above, the DCE will accept a subsequent UA
  29090. .ce
  29091. response to the mode\(hysetting command it issued without causing an exception
  29092. .ce
  29093. condition if received within the time\(hyout interval.
  29094. .ce
  29095. .parag
  29096. .ce
  29097.  
  29098. .ce
  29099. 2.4.4.5.2
  29100. .ce
  29101. If the sent and received unnumbered commands are
  29102. .ce
  29103. different, the DCE and the DTE shall each enter the disconnected phase and
  29104. .ce
  29105. issue a DM response at the earliest possible opportunity.
  29106. .ce
  29107. .parag
  29108. .ce
  29109. 2.4.4.6
  29110. .ce
  29111. \fICollision of DM response with SABM/SABME or DISC\fR 
  29112. .ce
  29113.  
  29114. .ce
  29115. \fIcommand\fR 
  29116. .ce
  29117. .parag
  29118. .ce
  29119. When a DM response is issued by the DCE or DTE as an unsolicited
  29120. .ce
  29121. response to request the DTE or DCE, respectively, to issue a mode\(hysetting
  29122. .ce
  29123. command as described in \(sc\ 2.4.4.4, a collision between an SABM/SABME 
  29124. or DISC 
  29125. .ce
  29126. command and the unsolicited DM response may occur. In order to avoid
  29127. .ce
  29128. misinterpretation of the DM response received, the DTE always sends its
  29129. .ce
  29130. SABM/SABME or DISC command with the P\ bit set to\ 1.
  29131. .ce
  29132. .parag
  29133. .ce
  29134. 2.4.4.7
  29135. .ce
  29136. \fICollision of DM responses\fR 
  29137. .ce
  29138. .parag
  29139. .ce
  29140. A contention situation may occur when both the DCE and the DTE
  29141. .ce
  29142. issue a DM response to request a mode\(hysetting command. In this case, the DTE
  29143. .ce
  29144. will issue an SABM/SABME command to resolve the contention situation.
  29145. .ce
  29146. .parag
  29147. .ce
  29148.  
  29149. .ce
  29150. 2.4.5
  29151. .ce
  29152. \fILAPB procedures for information transfer\fR 
  29153. .ce
  29154. .parag
  29155. .ce
  29156. The procedures which apply to the transmission of I\ frames in each direction 
  29157. during the information transfer phase are described below. 
  29158. .ce
  29159. .parag
  29160. .ce
  29161. In the following, \*Qnumber one higher\*U is in reference to a
  29162. .ce
  29163. continuously repeated sequence series, i.e., 7 is 1\ higher than 6 and 0 is
  29164. .ce
  29165. 1\ higher than 7 for modulo\ 8 series, and 127 is 1\ higher than 126 and 0 is
  29166. .ce
  29167. 1\ higher than 127 for modulo\ 128 series.
  29168. .ce
  29169. .parag
  29170. .ce
  29171. 2.4.5.1
  29172. .ce
  29173. \fISending I frames\fR 
  29174. .ce
  29175. .parag
  29176. .ce
  29177. When the DCE has an I frame to transmit (i.e. an I frame not
  29178. .ce
  29179. already transmitted, or having to be retransmitted as described in \(sc\ 
  29180. 2.4.5.6 
  29181. .ce
  29182. below), it will transmit it with an N(S) equal to its current send state
  29183. .ce
  29184. variable V(S), and an N(R) equal to its current receive state variable 
  29185. V(R). At the end of the transmission of the I\ frame, the DCE will increment 
  29186. its send 
  29187. .ce
  29188. state variable V(S) by\ 1.
  29189. .ce
  29190. .parag
  29191. .ce
  29192. If Timer T1 is not running at the time of transmission of an I frame, it 
  29193. will be started. 
  29194. .ce
  29195. .parag
  29196. .ce
  29197. If the send state variable V(S) is equal to the last value of N(R)
  29198. .ce
  29199. received plus \fIk\fR 
  29200. .ce
  29201. (where \fIk\fR 
  29202. .ce
  29203. is the maximum number of outstanding I\ frames \(em
  29204. .ce
  29205. see \(sc\ 2.4.8.6 below), the DCE will not transmit any new I\ frames, but may
  29206. .ce
  29207. retransmit an I\ frame as described in \(sc\(sc\ 2.4.5.6 or 2.4.5.9 below.
  29208. .ce
  29209. .parag
  29210. .ce
  29211. When the DCE is in the busy condition, it may still transmit I frames, 
  29212. provided that the DTE is not busy. When the DCE is in the frame rejection 
  29213. .ce
  29214. condition, it will stop transmitting I\ frames.
  29215. .ce
  29216. .parag
  29217. .ce
  29218. 2.4.5.2
  29219. .ce
  29220. \fIReceiving an I frame\fR 
  29221. .ce
  29222. .parag
  29223. .ce
  29224. 2.4.5.2.1
  29225. .ce
  29226. When the DCE is not in a busy condition and receives a valid I\ frame whose 
  29227. send sequence number N(S) is equal to the DCE receive state 
  29228. .ce
  29229. variable V(R), the DCE will accept the information field of this frame,
  29230. .ce
  29231. increment by one its receive state variable V(R), and act as follows:
  29232. .ce
  29233. .parag
  29234. .ce
  29235.  
  29236. .ce
  29237. a)
  29238. .ce
  29239. If the DCE is still not in a busy condition:
  29240. .ce
  29241. .parag
  29242. .ce
  29243. i)
  29244. .ce
  29245. If an I frame is available for transmission by the
  29246. .ce
  29247. DCE, it may act as in \(sc\ 2.4.5.1 above and acknowledge
  29248. .ce
  29249. the received I frame by setting N(R) in the control field
  29250. .ce
  29251. of the next transmitted I\ frame to the value of the DCE
  29252. .ce
  29253. receive state variable V(R). Alternatively, the DCE may
  29254. .ce
  29255. acknowledge the received I\ frame by transmitting an RR
  29256. .ce
  29257. frame with the N(R) equal to the value of the DCE receive
  29258. .ce
  29259. state variable V(R).
  29260. .ce
  29261. .parag
  29262. .ce
  29263. ii)
  29264. .ce
  29265. If no I frame is available for transmission by the
  29266. .ce
  29267. DCE, it will transmit an RR frame with N(R) equal to the
  29268. .ce
  29269. value of the DCE receive state variable V(R).
  29270. .ce
  29271. .parag
  29272. .ce
  29273.  
  29274. .ce
  29275. b)
  29276. .ce
  29277. If the DCE is now in a busy condition, it will transmit an
  29278. .ce
  29279. RNR frame with N(R) equal to the value of the DCE receive
  29280. .ce
  29281. state variable V(R) (see \(sc\ 2.4.5.8).
  29282. .ce
  29283. .parag
  29284. .ce
  29285.  
  29286. .ce
  29287. 2.4.5.2.2
  29288. .ce
  29289. When the DCE is in a busy condition, it may ignore the
  29290. .ce
  29291. information field contained in any received I\ frame.
  29292. .ce
  29293. .parag
  29294. .ce
  29295. 2.4.5.3
  29296. .ce
  29297. \fIReception of invalid frames\fR 
  29298. .ce
  29299. .parag
  29300. .ce
  29301. When the DCE receives an invalid frame (see \(sc\ 2.3.5.3), this frame 
  29302. will be discarded. 
  29303. .ce
  29304. .parag
  29305. .ce
  29306. 2.4.5.4
  29307. .ce
  29308. \fIReception of out\(hyof\(hysequence I frames\fR 
  29309. .ce
  29310. .parag
  29311. .ce
  29312. When the DCE receives a valid I frame whose send sequence number
  29313. .ce
  29314. N(S) is incorrect, i.e.,\ not equal to the current DCE receive state variable
  29315. .ce
  29316. V(R), it will discard the information field of the I\ frame and transmit 
  29317. an REJ frame with the N(R) set to one higher than the N(S) of the last 
  29318. correctly 
  29319. .ce
  29320. received I\ frame. The REJ frame will be a command frame with the P\ bit 
  29321. set to\ 1 if an acknowledged transfer of the retransmission request is 
  29322. required; 
  29323. .ce
  29324. otherwise the REJ frame may be either a command or a response frame. The DCE
  29325. .ce
  29326. will then discard the information field of all I\ frames received until the
  29327. .ce
  29328. expected I\ frame is correctly received. When receiving the expected I\ frame,
  29329. .ce
  29330. the DCE will then acknowledge the I\ frame as described in \(sc\ 2.4.5.2 
  29331. above. The DCE will use the N(R) and P\ bit information in the discarded 
  29332. I\ frames as 
  29333. .ce
  29334. described in \(sc\ 2.3.5.2 above.
  29335. .ce
  29336. .parag
  29337. .ce
  29338. 2.4.5.5
  29339. .ce
  29340. \fIReceiving acknowledgement\fR 
  29341. .ce
  29342. .parag
  29343. .ce
  29344. When correctly receiving an I frame or a supervisory frame (RR, RNR or 
  29345. REJ), even in the busy condition, the DCE will consider the N(R) contained 
  29346. in this frame as an acknowledgement for all I\ frames it has transmitted 
  29347. with an N(S) up to and including the received N(R)\(em1. The DCE will stop 
  29348. Timer\ T1 when it correctly receives an I\ frame or a supervisory frame 
  29349. with the N(R) higher 
  29350. .ce
  29351. than the last received N(R) (actually acknowledging some I\ frames), or 
  29352. an REJ frame with an N(R) equal to the last received N(R). 
  29353. .ce
  29354. .parag
  29355. .ce
  29356.  
  29357. .ce
  29358. If Timer T1 has been stopped by the receipt on an I, RR or RNR frame, and 
  29359. if there are outstanding I\ frames still unacknowledged, the DCE will 
  29360. .ce
  29361. restart Timer\ T1. If Timer\ T1 then runs out, the DCE will follow the 
  29362. recovery procedure (\(sc\ 2.4.5.9 below) with respect to the unacknowledged 
  29363. I\ frames. If 
  29364. .ce
  29365. Timer\ T1 has been stopped by the receipt of an REJ frame, the DCE will 
  29366. follow the retransmission procedures in \(sc\ 2.4.5.6 below. 
  29367. .ce
  29368. .parag
  29369. .ce
  29370. 2.4.5.6
  29371. .ce
  29372. \fIReceiving an REJ frame\fR 
  29373. .ce
  29374. .parag
  29375. .ce
  29376. When receiving an REJ frame, the DCE will set its send state
  29377. .ce
  29378. variable V(S) to the N(R) received in the REJ control field. It will transmit 
  29379. the corresponding I\ frame as soon as it is available or retransmit it 
  29380. in 
  29381. .ce
  29382. accordance with the procedures described in \(sc\ 2.4.5.1 above. (Re)transmission 
  29383. will conform to the following procedure: 
  29384. .ce
  29385. .parag
  29386. .ce
  29387. i)
  29388. .ce
  29389. if the DCE is transmitting a supervisory command or response
  29390. .ce
  29391. when it receives the REJ frame, it will complete that
  29392. .ce
  29393. transmission before commencing transmission of the requested
  29394. .ce
  29395. I\ frame;
  29396. .ce
  29397. .parag
  29398. .ce
  29399.  
  29400. .ce
  29401. ii)
  29402. .ce
  29403. if the DCE is transmitting an unnumbered command or
  29404. .ce
  29405. response when it receives the REJ frame, it will ignore the
  29406. .ce
  29407. request for retransmission;
  29408. .ce
  29409. .parag
  29410. .ce
  29411. iii)
  29412. .ce
  29413. if the DCE is transmitting an I frame when the REJ frame
  29414. .ce
  29415. is received, it may abort the I\ frame and commence transmission
  29416. .ce
  29417. of the requested I\ frame immediately after abortion;
  29418. .ce
  29419. .parag
  29420. .ce
  29421. iv)
  29422. .ce
  29423. if the DCE is not transmitting any frame when the REJ frame
  29424. .ce
  29425. is received, it will commence transmission of the requested
  29426. .ce
  29427. I\ frame immediately.
  29428. .ce
  29429. .parag
  29430. .ce
  29431. In all cases, if other unacknowledged I frames had already been
  29432. .ce
  29433. transmitted following the one indicated in the REJ frame, then those I 
  29434. frames will be retransmitted by the DCE following the retransmission of 
  29435. the requested I\ frame. Other I\ frames not yet transmitted may be transmitted 
  29436. following the 
  29437. .ce
  29438. retransmitted I\ frames.
  29439. .ce
  29440. .parag
  29441. .ce
  29442. If the REJ frame was received from the DTE as a command with the P bit 
  29443. set to\ 1, the DCE will transmit an RR, RNR or REJ response with the F 
  29444. bit set to\ 1 before transmitting or retransmitting the corresponding I\ 
  29445. frame. 
  29446. .ce
  29447. .parag
  29448. .ce
  29449. 2.4.5.7
  29450. .ce
  29451. \fIReceiving an RNR frame\fR 
  29452. .ce
  29453. .parag
  29454. .ce
  29455. After receiving an RNR frame whose N(R) acknowledges all frames
  29456. .ce
  29457. previously transmitted, the DCE will stop Timer\ T1 and may then transmit
  29458. .ce
  29459. an I\ frame, with the P\ bit set to\ 0, whose send sequence number is
  29460. .ce
  29461. equal to the N(R) indicated in the RNR frame, restarting Timer\ T1 as it 
  29462. does. After receiving an RNR frame whose N(R) indicates a previously transmitted 
  29463. .ce
  29464. frame, the DCE will not transmit or retransmit any I\ frame, Timer\ T1 being
  29465. .ce
  29466. already running. In either case, if the Timer\ T1 runs out before receipt 
  29467. of a busy clearance indication, the DCE will follow the procedure described 
  29468. in 
  29469. .ce
  29470. \(sc\ 2.4.5.9\ below. In any case, the DCE will not transmit any other 
  29471. I\ frames 
  29472. .ce
  29473. before receiving an RR or REJ frame, or before the completion of a link
  29474. .ce
  29475. resetting procedure.
  29476. .ce
  29477. .parag
  29478. .ce
  29479. Alternatively, after receiving an RNR frame, the DCE may wait for a
  29480. .ce
  29481. period of time (e.g.,\ the length of the Timer\ T1) and then transmit a
  29482. .ce
  29483. supervisory command frame (RR, RNR or REJ) with the P\ bit set to\ 1, and 
  29484. start Timer\ T1, in order to determine if there is any change in the receive 
  29485. status of the DTE. The DTE shall respond to the P\ bit set to\ 1 with a 
  29486. supervisory 
  29487. .ce
  29488. response frame (RR, RNR or REJ) with the F\ bit set to\ 1 indicating either
  29489. .ce
  29490. continuance of the busy condition (RNR) or clearance of the busy condition 
  29491. (RR or REJ). Upon receipt of the DTE response, Timer\ T1 is stopped. 
  29492. .ce
  29493. .parag
  29494. .ce
  29495.  
  29496. .ce
  29497. 1)
  29498. .ce
  29499. If the response is the RR or REJ response, the busy
  29500. .ce
  29501. condition is cleared and the DCE may transmit I\ frames beginning
  29502. .ce
  29503. with the I\ frame identified by the N(R) in the received response
  29504. .ce
  29505. frame.
  29506. .ce
  29507. .parag
  29508. .ce
  29509. 2)
  29510. .ce
  29511. If the response is the RNR response, the busy condition
  29512. .ce
  29513. still exists, and the DCE will after a period of time (e.g.\ the
  29514. .ce
  29515. length of Timer\ T1) repeat the enquiry of the DTE receive
  29516. .ce
  29517. status.
  29518. .ce
  29519. .parag
  29520. .ce
  29521. If Timer T1 runs out before a status response is received, the
  29522. .ce
  29523. enquiry process above is repeated. If N2 attempts to get a status response 
  29524. fail (i.e.\ Timer\ T1 runs out N2\ times), the DCE will initiate a data 
  29525. link resetting procedure as described in \(sc\ 2.4.7.2\ below or will transmit 
  29526. a DM response to ask the DTE to initiate a data link set\(hyup procedure 
  29527. as described in \(sc\ 2.4.4.1 and enter the disconnected phase. The value 
  29528. of N2 is defined in \(sc\ 2.4.8.4\ below. 
  29529. .ce
  29530. .parag
  29531. .ce
  29532.  
  29533. .ce
  29534. If, at any time during the enquiry process, an unsolicited RR or REJ frame 
  29535. is received from the DTE, it will be considered to be an indication of 
  29536. .ce
  29537. clearance of the busy condition. Should the unsolicited RR or REJ frame be a
  29538. .ce
  29539. command frame with the P bit set to\ 1, the appropriate response frame 
  29540. with the F\ bit set to 1 must be transmitted before the DCE may resume 
  29541. transmission of 
  29542. .ce
  29543. I\ frames. If Timer\ T1 is running, the DCE will wait for the non\(hybusy 
  29544. response with the F bit set to\ 1 or will wait for Timer\ T1 to run out 
  29545. and then either 
  29546. .ce
  29547. may reinitiate the enquiry process in order to realize a successful P/F bit
  29548. .ce
  29549. exchange or may resume transmission of I frames beginning with the I\ frame
  29550. .ce
  29551. identified by the N(R) in the received RR or REJ frame.
  29552. .ce
  29553. .parag
  29554. .ce
  29555. 2.4.5.8
  29556. .ce
  29557. \fIDCE busy condition\fR 
  29558. .ce
  29559. .parag
  29560. .ce
  29561. When the DCE enters a busy condition, it will transmit an RNR frame at 
  29562. the earliest opportunity. The RNR frame will be a command frame with the 
  29563. P bit set to\ 1 if an acknowledged transfer of the busy condition indication 
  29564. is 
  29565. .ce
  29566. required; otherwise the RNR frame may be either a command or a response 
  29567. frame. While in the busy condition, the DCE will accept and process supervisory 
  29568. .ce
  29569. frames, will accept and process the contents of the N(R) fields of I\ frames,
  29570. .ce
  29571. and will return an RNR response with the F bit set to\ 1 if it receives a
  29572. .ce
  29573. supervisory command or I command frame with the P bit set to\ 1. To clear the
  29574. .ce
  29575. busy condition, the DCE will transmit either an REJ frame or an RR frame, with
  29576. .ce
  29577. N(R) set to the current receive state variable V(R), depending on whether or
  29578. .ce
  29579. not it discarded information fields of correctly received I\ frames. The REJ
  29580. .ce
  29581. frame or the RR frame will be a command frame with the P bit set to\ 1 if an
  29582. .ce
  29583. acknowledged transfer of the busy\(hyto\(hynon\(hybusy transition is required, 
  29584. otherwise the REJ frame or the RR frame may be either a command or a response 
  29585. frame. 
  29586. .ce
  29587. .parag
  29588. .ce
  29589.  
  29590. .ce
  29591. 2.4.5.9
  29592. .ce
  29593. \fIWaiting acknowledgement\fR 
  29594. .ce
  29595. .parag
  29596. .ce
  29597. The DCE maintains an internal transmission attempt variable which is set 
  29598. to\ 0 when the DCE sends a UA response, when the DCE receives a UA 
  29599. .ce
  29600. response or an RNR command or response, or when the DCE correctly receives 
  29601. an I\ frame or supervisory frame with the N(R) higher than the last received 
  29602. N(R) (actually acknowledging some outstanding I\ frames). 
  29603. .ce
  29604. .parag
  29605. .ce
  29606. If Timer T1 runs out waiting for the acknowledgement from the DTE for an 
  29607. I\ frame transmitted, the DCE will enter the timer recovery condition, 
  29608. add 
  29609. .ce
  29610. one to its transmission attempt variable and set an internal variable \fIx\fR 
  29611. .ce
  29612. to
  29613. .ce
  29614. the current value of its send state variable V(S). The DCE will then restart
  29615. .ce
  29616. Timer T1, set its send state variable V(S) to the last value of N(R) received 
  29617. from the DTE and retransmit the corresponding I\ frame with the P bit set 
  29618. to\ 1, or transmit an appropriate supervisory command frame (RR, RNR or 
  29619. REJ) with the P\ bit set to\ 1. 
  29620. .ce
  29621. .parag
  29622. .ce
  29623.  
  29624. .ce
  29625. The timer recovery condition is cleared when the DCE receives a valid supervisory 
  29626. frame with the F\ bit\ set to\ 1. 
  29627. .ce
  29628. .parag
  29629. .ce
  29630. If, while in the timer recovery condition, the DCE correctly receives a 
  29631. supervisory frame with the F bit set to\ 1 and with the N(R) within the 
  29632. range from its current send state variable V(S) to \fIx\fR 
  29633. .ce
  29634. included, it will clear the
  29635. .ce
  29636. timer recovery condition (including stopping Timer\ T1) and set its send 
  29637. state variable V(S) to the value of the received N(R), and may then resume 
  29638. with 
  29639. .ce
  29640. I\ frame transmission or retransmission, as appropriate.
  29641. .ce
  29642. .parag
  29643. .ce
  29644. If, while in the timer recovery condition, the DCE correctly receives an 
  29645. I or supervisory frame with the P/F bit set to\ 0 and with a valid N(R) 
  29646. (see \(sc\ 2.3.4.9), it will not clear the timer recovery condition. The 
  29647. value of the 
  29648. .ce
  29649. received N(R) may be used to update the send state variable V(S). However, 
  29650. the DCE may decide to keep the last transmitted I\ frame in store (even 
  29651. if it is 
  29652. .ce
  29653. acknowledged) in order to be able to retransmit it with the P bit set to\ 
  29654. 1 when Timer\ T1 runs out at a later time. 
  29655. .ce
  29656. .parag
  29657. .ce
  29658.  
  29659. .ce
  29660. If the received supervisory frame with the P/F bit set to\ 0 is an REJ 
  29661. frame with a valid N(R), the DCE may either immediately initiate 
  29662. .ce
  29663. (re)transmission from the value of the send state variable V(S), or it may
  29664. .ce
  29665. ignore the request for retransmission and wait until the supervisory frame 
  29666. with the F bit set to\ 1 is received before initiating (re)transmission 
  29667. of frames 
  29668. .ce
  29669. from the value identified in the N(R) field of the supervisory frame with 
  29670. the F\ bit set to\ 1. In the case of immediate retransmission, in order 
  29671. to prevent 
  29672. .ce
  29673. duplicate retransmissions following the clearance of the timer recovery
  29674. .ce
  29675. condition, the DCE shall inhibit retransmission of a specific I\ frame [same
  29676. .ce
  29677. N(R) in the same numbering cycle] if the DCE has retransmitted that I\ 
  29678. frame as the result of a received REJ frame with the P/F bit set to\ 0. 
  29679. .ce
  29680. .parag
  29681. .ce
  29682. If, while in the timer recovery condition, the DCE receives a REJ
  29683. .ce
  29684. command with the P bit set to\ 1, the DCE will respond immediately with an
  29685. .ce
  29686. appropriate supervisory response with the F bit set to\ 1. The DCE may 
  29687. then use the value of the N(R) in the REJ command to update the send state 
  29688. variable 
  29689. .ce
  29690. V(S), and may either immediately begin (re)transmission from the value N(R)
  29691. .ce
  29692. indicated in the REJ frame or ignore the request for retransmission and wait
  29693. .ce
  29694. until the supervisory frame with the F bit set to\ 1 is received before
  29695. .ce
  29696. initiating (re)transmission of I\ frames from the value identified in the 
  29697. N(R) field of the supervisory frame with the F\ bit set to\ 1. In the case 
  29698. of 
  29699. .ce
  29700. immediate retransmission, in order to prevent duplicate retransmissions
  29701. .ce
  29702. following the clearance of the timer recovery condition, the DCE shall 
  29703. inhibit retransmission of a specific I\ frame [same N(R) in the same numbering 
  29704. cycle] 
  29705. .ce
  29706. if the DCE has retransmitted that I\ frame as the result of the received REJ
  29707. .ce
  29708. command with the P\ bit set to\ 1.
  29709. .ce
  29710. .parag
  29711. .ce
  29712. If Timer T1 runs out in the timer recovery condition, and no I or
  29713. .ce
  29714. supervisory frame with the P/F bit set to 0 and with a valid N(R) has been
  29715. .ce
  29716. received, or no REJ command with the P bit set to\ 1 and with a valid N(R) 
  29717. has been received, the DCE will add one to its transmission attempt variable, 
  29718. .ce
  29719. restart Timer\ T1, and either retransmit the I frame sent with the P bit set
  29720. .ce
  29721. to\ 1 or transmit an appropriate supervisory command with the P bit set to\ 1.
  29722. .ce
  29723. .parag
  29724. .ce
  29725.  
  29726. .ce
  29727. If the transmission attempt variable is equal to N2, the DCE will
  29728. .ce
  29729. initiate a data link resetting procedure as described in \(sc\ 2.4.7.2 
  29730. below, or 
  29731. .ce
  29732. will transmit a DM response to ask the DTE to initiate a data link set\(hyup
  29733. .ce
  29734. procedure as described in \(sc\ 2.4.4.1 above and enter the disconnected 
  29735. phase. N2 is a system parameter (see \(sc\ 2.4.8.4 below). 
  29736. .ce
  29737. .parag
  29738. .ce
  29739. \fINote\fR 
  29740. .ce
  29741. \ \(em\ Although the DCE may implement the internal variable \fIx\fR 
  29742. .ce
  29743. ,
  29744. .ce
  29745. other mechanisms do exist that achieve the identical function.
  29746. .ce
  29747. .parag
  29748. .ce
  29749. 2.4.6
  29750. .ce
  29751. \fILAPB conditions for \fR 
  29752. .ce
  29753. \fIdata link resetting or data link\fR 
  29754. .ce
  29755.  
  29756. .ce
  29757. \fIre\(hyinitialization\fR 
  29758. .ce
  29759. \fI(data link set\(hyup)\fR 
  29760. .ce
  29761. .parag
  29762. .ce
  29763. 2.4.6.1
  29764. .ce
  29765. When the DCE receives, during the information transfer phase, a
  29766. .ce
  29767. frame which is not invalid (see \(sc\ 2.3.5.3) with one of the conditions 
  29768. listed in \(sc\ 2.3.4.9 above, the DCE will request the DTE to initiate 
  29769. a data link resetting procedure by transmitting an FRMR response to the 
  29770. DTE as described in 
  29771. .ce
  29772. \(sc\ 2.4.7.3.
  29773. .ce
  29774. .parag
  29775. .ce
  29776. 2.4.6.2
  29777. .ce
  29778. When the DCE receives, during the information transfer phase, an FRMR response 
  29779. from the DTE, the DCE will either initiate the data link 
  29780. .ce
  29781. resetting procedures itself as described in \(sc\ 2.4.7.2 or return a DM 
  29782. response to ask the DTE to initiate the data link set\(hyup (initialization) 
  29783. procedure as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  29784. the DCE will enter 
  29785. .ce
  29786. the disconnected phase as described in \(sc\ 2.4.4.4.2.
  29787. .ce
  29788. .parag
  29789. .ce
  29790. 2.4.6.3
  29791. .ce
  29792. When the DCE receives, during the information transfer phase, a UA response, 
  29793. or an unsolicited response with the F bit set to\ 1, the DCE may 
  29794. .ce
  29795. either initiate the data link resetting procedures itself as described in
  29796. .ce
  29797. \(sc\ 2.4.7.2, or return a DM response to ask the DTE to initiate the data link
  29798. .ce
  29799. set\(hyup (initialization) procedure as described in \(sc\ 2.4.4.1. After 
  29800. transmitting a DM response, the DCE will enter the disconnected phase as 
  29801. described in 
  29802. .ce
  29803. \(sc\ 2.4.4.4.2.
  29804. .ce
  29805. .parag
  29806. .ce
  29807. 2.4.6.4
  29808. .ce
  29809. When the DCE receives, during the information transfer phase, a DM response 
  29810. from the DTE, the DCE will either initiate the data link set\(hyup 
  29811. .ce
  29812. (initialization) procedures itself as described in \(sc\ 2.4.4.1, or return 
  29813. a DM 
  29814. .ce
  29815. response to ask the DTE to initiate the data link set\(hyup (initialization)
  29816. .ce
  29817. procedures as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  29818. the DCE will enter the disconnected phase as described in \(sc\ 2.4.4.4.2. 
  29819. .ce
  29820. .parag
  29821. .ce
  29822.  
  29823. .ce
  29824. 2.4.7
  29825. .ce
  29826. \fILAPB procedure for data link resetting\fR 
  29827. .ce
  29828. .parag
  29829. .ce
  29830. 2.4.7.1
  29831. .ce
  29832. The data link resetting procedure is used to initialize both
  29833. .ce
  29834. directions of information transfer according to the procedure described 
  29835. below. The data link resetting procedure only applies during the information 
  29836. transfer phase. 
  29837. .ce
  29838. .parag
  29839. .ce
  29840. 2.4.7.2
  29841. .ce
  29842. Either the DTE or the DCE may initiate the data link resetting
  29843. .ce
  29844. procedure. The data link resetting procedure indicates a clearance of a DCE
  29845. .ce
  29846. and/or DTE busy condition, if present.
  29847. .ce
  29848. .parag
  29849. .ce
  29850. The DTE shall initiate a data link resetting by transmitting an
  29851. .ce
  29852. SABM/SABME command to the DCE. If, upon correct receipt of the SABM/SABME
  29853. .ce
  29854. command, the DCE determines that it can continue in the information transfer
  29855. .ce
  29856. phase, it will return a UA response to the DTE, will reset its send and 
  29857. receive state variables V(S) and V(R) to zero, and will remain in the information 
  29858. .ce
  29859. transfer phase. If, upon correct receipt of the SABM/SABME command, the DCE
  29860. .ce
  29861. determines that it cannot remain in the information transfer phase, it will
  29862. .ce
  29863. return a DM response as a denial to the resetting request and will enter the
  29864. .ce
  29865. disconnected phase.
  29866. .ce
  29867. .parag
  29868. .ce
  29869. The DCE will initiate a data link resetting by transmitting an
  29870. .ce
  29871. SABM/SABME command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 
  29872. below). Upon reception of a UA response from the DTE, the DCE will reset 
  29873. its send and receive state variables V(S) and V(R) to zero, will stop its 
  29874. Timer\ T1, and will remain in the information transfer phase. Upon reception 
  29875. of a DM response from the DTE as a denial to the data link resetting request, 
  29876. the DCE will stop its Timer\ T1 and will enter the disconnected phase. 
  29877. .ce
  29878. .parag
  29879. .ce
  29880. The DCE, having sent an SABM/SABME command, will ignore and discard
  29881. .ce
  29882. any frames received from the DTE except an SABM/SABME or DISC command, 
  29883. or a UA or DM response. The receipt of an SABM/SABME or DISC command from 
  29884. the DTE will result in a collision situation that is resolved per \(sc\ 
  29885. 2.4.4.5 above. Frames 
  29886. .ce
  29887. other than the UA or DM response sent in response to a received SABM/SABME 
  29888. or DISC command will be sent only after the data link is reset and if no 
  29889. .ce
  29890. outstanding SABM/SABME command exists.
  29891. .ce
  29892. .parag
  29893. .ce
  29894.  
  29895. .ce
  29896. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  29897. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  29898. .ce
  29899. resend the SABM/SABME command and will restart Timer\ T1. After N2 attempts 
  29900. to reset the data link, the DCE will initiate appropriate higher layer 
  29901. recovery 
  29902. .ce
  29903. action and will enter the disconnected phase. The value of N2 is defined in
  29904. .ce
  29905. \(sc\ 2.4.8.4 below.
  29906. .ce
  29907. .parag
  29908. .ce
  29909. 2.4.7.3
  29910. .ce
  29911. The DCE may ask the DTE to reset the data link by transmitting an FRMR 
  29912. response (see \(sc\ 2.4.6.1 above). After transmitting an FRMR response, 
  29913. .ce
  29914. the DCE will enter the frame rejection condition.
  29915. .ce
  29916. .parag
  29917. .ce
  29918. The frame rejection condition is cleared when the DCE receives an SABM/SABME 
  29919. command, a DISC command, a FRMR response, or a DM response; or if 
  29920. .ce
  29921. the DCE transmits an SABM/SABME command, a DISC command, or a DM response.
  29922. .ce
  29923. Other commands received while in the frame rejection condition will cause 
  29924. the DCE to retransmit the FRMR response with the same information field 
  29925. as 
  29926. .ce
  29927. originally transmitted.
  29928. .ce
  29929. .parag
  29930. .ce
  29931. The DCE may start Timer\ T1 on transmission of the FRMR response. If
  29932. .ce
  29933. Timer\ T1 runs out before the frame rejection condition is cleared, the 
  29934. DCE may retransmit the FRMR response, and restart T1. After N2 attempts 
  29935. (time outs) to get the DTE to reset the data link, the DCE may reset the 
  29936. data link itself as described in \(sc\ 2.4.7.2 above. The value of N2 is 
  29937. defined in \(sc\ 2.4.8.4 below. 
  29938. .ce
  29939. .parag
  29940. .ce
  29941.  
  29942. .ce
  29943. In the frame rejection condition, I frames and supervisory frames will 
  29944. not be transmitted by the DCE. Also, received I frames and supervisory 
  29945. frames will be discarded by the DCE except for the observance of a P bit 
  29946. set to\ 1. 
  29947. .ce
  29948. When an additional FRMR response must be transmitted by the DCE as a result 
  29949. of the receipt of a P\ bit set to 1 while Timer\ T1 is running, Timer\ 
  29950. T1 will 
  29951. .ce
  29952. continue to run. Upon reception of an FRMR response (even during a frame
  29953. .ce
  29954. rejection condition), the DCE will initiate a resetting procedure by
  29955. .ce
  29956. transmitting an SABM/SABME command as described in \(sc\ 2.4.7.2 above, or will
  29957. .ce
  29958. transmit a DM response to ask the DTE to initiate the data link set\(hyup
  29959. .ce
  29960. procedure as described in \(sc\ 2.4.4.1 and enter the disconnected phase.
  29961. .ce
  29962. .parag
  29963. .ce
  29964. 2.4.8
  29965. .ce
  29966. \fIList of \fR 
  29967. .ce
  29968. \fILAPB system parameters\fR 
  29969. .ce
  29970. .parag
  29971. .ce
  29972. The DCE and DTE system parameters are as follows:
  29973. .ce
  29974. .parag
  29975. .ce
  29976.  
  29977. .ce
  29978. 2.4.8.1
  29979. .ce
  29980. \fITimer\fR 
  29981. .ce
  29982. \fIT1\fR 
  29983. .ce
  29984. .parag
  29985. .ce
  29986. The value of the DTE Timer T1 system parameter may be different
  29987. .ce
  29988. than the value of the DCE Timer T1 system parameter. These values shall 
  29989. be made known to both the DTE and the DCE, and agreed to for a period of 
  29990. time by both the DTE and the DCE. 
  29991. .ce
  29992. .parag
  29993. .ce
  29994. The period of Timer T1, at the end of which retransmission of a frame may 
  29995. be initiated (see \(sc\ 2.4.4 and \(sc\ 2.4.5 above for the DCE), shall 
  29996. take into account whether T1 is started at the beginning or the end of 
  29997. the transmission of a frame. 
  29998. .ce
  29999. .parag
  30000. .ce
  30001. The proper operation of the procedure requires that the transmitter's (DCE 
  30002. or DTE) Timer\ T1 be greater than the maximum time between transmission 
  30003. of a frame (SABM/SABME, DISC, I\ or supervisory command, or DM or FRMR 
  30004. response) 
  30005. .ce
  30006. and the reception of the corresponding frame returned as an answer to that
  30007. .ce
  30008. frame (UA, DM or acknowledging frame). Therefore, the receiver (DCE or DTE)
  30009. .ce
  30010. should not delay the response or acknowledging frame returned to one of the
  30011. .ce
  30012. above frames by more than a value\ T2, where T2 is a system parameter (see
  30013. .ce
  30014. \(sc\ 2.4.8.2).
  30015. .ce
  30016. .parag
  30017. .ce
  30018.  
  30019. .ce
  30020. The DCE will not delay the response or acknowledging frame returned to 
  30021. one of the above DTE frames by more than a period\ T2. 
  30022. .ce
  30023. .parag
  30024. .ce
  30025. 2.4.8.2
  30026. .ce
  30027. \fIParameter T2\fR 
  30028. .ce
  30029. .parag
  30030. .ce
  30031. The value of the DTE parameter T2 may be different than the value of the 
  30032. DCE parameter T2. These values shall be made known to both the DTE and 
  30033. the DCE, and agreed to for a period of time by both the DTE and the DCE. 
  30034. .ce
  30035. .parag
  30036. .ce
  30037.  
  30038. .ce
  30039. The period of parameter T2 shall indicate the amount of time
  30040. .ce
  30041. available at the DCE or DTE before the acknowledging frame must be initiated 
  30042. in order to ensure its receipt by the DTE or DCE, respectively, prior to 
  30043. Timer\ T1 running out at the DTE or DCE (parameter\ T2\ <\ Timer\ T1). 
  30044. .ce
  30045. .parag
  30046. .ce
  30047. \fINote\fR 
  30048. .ce
  30049. \ \(em\ The period of parameter T2 shall take into account the
  30050. .ce
  30051. following timing factors: the transmission time of the acknowledging frame, 
  30052. the propagation time over the access data link, the stated processing times 
  30053. at the DCE and the DTE, and the time to complete the transmission of the 
  30054. frame(s) in the DCE or DTE transmit queue that are neither displaceable 
  30055. or modifiable in an orderly manner. 
  30056. .ce
  30057. .parag
  30058. .ce
  30059.  
  30060. .ce
  30061. Given a value for Timer T1 for the DTE or DCE, the value of parameter T2 
  30062. at the DCE or DTE, respectively, must be no larger than T1 minus\ 2 times 
  30063. the propagation time over the access data link, minus the frame processing 
  30064. time at the DCE, minus the frame processing time at the DTE, and minus 
  30065. the transmission time of the acknowledging frame by the DCE or DTE, respectively. 
  30066. .ce
  30067. .parag
  30068. .ce
  30069.  
  30070. .ce
  30071. 2.4.8.3
  30072. .ce
  30073. \fITimer T3\fR 
  30074. .ce
  30075. .parag
  30076. .ce
  30077. The DCE shall support a Timer T3 system parameter, the value of
  30078. .ce
  30079. which shall be made known to the DTE.
  30080. .ce
  30081. .parag
  30082. .ce
  30083. The period of Timer T3, at the end of which an indication of an
  30084. .ce
  30085. observed excessively long idle channel state condition is passed to the 
  30086. Packet Layer, shall be sufficiently greater than the period of the DCE 
  30087. Timer T1 
  30088. .ce
  30089. (i.e.\ T3\ >\ T1) so that the expiration of T3 provides the desired level of
  30090. .ce
  30091. assurance that the data link channel is in a non\(hyactive, non\(hyoperational 
  30092. state, and is in need of data link set\(hyup before normal data link operation 
  30093. can 
  30094. .ce
  30095. resume.
  30096. .ce
  30097. .parag
  30098. .ce
  30099. 2.4.8.4
  30100. .ce
  30101. \fIMaximum number of attempts\fR 
  30102. .ce
  30103. \fIto complete a\fR 
  30104. .ce
  30105.  
  30106. .ce
  30107. \fItransmission N2\fR 
  30108. .ce
  30109. .parag
  30110. .ce
  30111.  
  30112. .ce
  30113. The value of the DTE N2 system parameter may be different than the value 
  30114. of the DCE N2 system parameter. These values shall be made known to both 
  30115. the DTE and the DCE, and agreed to for a period of time by both the DTE 
  30116. and the DCE. 
  30117. .ce
  30118. .parag
  30119. .ce
  30120. The value of N2 shall indicate the maximum number of attempts made by the 
  30121. DCE or DTE to complete the successful transmission of a frame to the DTE 
  30122. or DCE, respectively. 
  30123. .ce
  30124. .parag
  30125. .ce
  30126. 2.4.8.5
  30127. .ce
  30128. \fIMaximum number of bits in an I frame N1\fR 
  30129. .ce
  30130. .parag
  30131. .ce
  30132. The value of the DTE N1 system parameter may be different than the value 
  30133. of the DCE N1 system parameter. These values shall be made known to both 
  30134. the DTE and the DCE. 
  30135. .ce
  30136. .parag
  30137. .ce
  30138. The values of N1 shall indicate the maximum number of bits in an
  30139. .ce
  30140. I\ frame (excluding flags and 0\ bits inserted for transparency) that the 
  30141. DCE or DTE is willing to accept from the DTE or DCE, respectively. 
  30142. .ce
  30143. .parag
  30144. .ce
  30145. In order to allow for universal operation, a DTE should support a
  30146. .ce
  30147. value of DTE N1 which is not less than 1080\ bits (135\ octets). DTEs should 
  30148. be aware that the network may transmit longer packets (see \(sc\ 5.2), 
  30149. that may result in a data link layer problem. 
  30150. .ce
  30151. .parag
  30152. .ce
  30153.  
  30154. .ce
  30155. All networks shall offer to a DTE which requires it, a value of DCE N1 
  30156. which is greater than or equal to 2072\ bits (259\ octets) plus the length 
  30157. of the address, control and FCS fields at the DTE/DCE interface, and greater 
  30158. than or equal to the maximum length of the data packets which may cross 
  30159. the DTE/DCE 
  30160. .ce
  30161. interface plus the length of the address, control and FCS fields at the 
  30162. DTE/DCE interface. 
  30163. .ce
  30164. .parag
  30165. .ce
  30166. Appendix II provides a description of how the values stated above are  derived.
  30167. .ce
  30168. .parag
  30169. .ce
  30170. 2.4.8.6
  30171. .ce
  30172. \fIMaximum number of \fR 
  30173. .ce
  30174. \fIoutstanding I frames k\fR 
  30175. .ce
  30176. .parag
  30177. .ce
  30178. The value of the DTE k system parameter shall be the same as the
  30179. .ce
  30180. value of the DCE k system parameter. This value shall be agreed to for a
  30181. .ce
  30182. period of time by both the DTE and the DCE.
  30183. .ce
  30184. .parag
  30185. .ce
  30186. The value of k shall indicate the maximum number of sequentially
  30187. .ce
  30188. numbered I\ frames that the DTE or DCE may have outstanding
  30189. .ce
  30190. (i.e.\ unacknowledged) at any given time. The value of k shall never exceed
  30191. .ce
  30192. seven for modulo\ 8 operation, or one hundred and twenty\(hyseven for modulo\ 
  30193. 128 
  30194. .ce
  30195. operation. All networks (DCEs) shall support a value of seven. Other values 
  30196. of k (less than and greater than seven) may also be supported by networks 
  30197. .ce
  30198. (DCEs).
  30199. .ce
  30200. .parag
  30201. .ce
  30202. .line
  30203. .ce
  30204. \fBMONTAGE : \(sc 2.5 de cette Recommandation sur le reste de cette page\fR 
  30205. .ce
  30206. .parag
  30207. .ce
  30208.  
  30209. .ce
  30210. .line
  30211. .ad r
  30212. \fBTable 7/X.25 [T7.25], p.\fR 
  30213. .sp 1P
  30214. .RT
  30215. .ad b
  30216. .RT
  30217. .ce
  30218. .line
  30219. .ce
  30220. \fBTable 8/X.25 [T8.25], p.\fR 
  30221. .ce
  30222. 2.3.5.2
  30223. .ce
  30224. \fIN(S) sequence error condition\fR 
  30225. .ce
  30226. .parag
  30227. .ce
  30228. The information field of all I frames received whose N(S) does not equal 
  30229. the receive state variable V(R) will be discarded. 
  30230. .ce
  30231. .parag
  30232. .ce
  30233. An N(S) sequence error exception condition occurs in the receiver when 
  30234. an I\ frame received contains an N(S) which is not equal to the receive 
  30235. state 
  30236. .ce
  30237. variable V(R) at the receiver. The receiver does not acknowledge (increment 
  30238. its receive state variable) the I\ frame causing the sequence error, or 
  30239. any I\ frame which may follow, until an I\ frame with the correct N(S) 
  30240. is received. 
  30241. .ce
  30242. .parag
  30243. .ce
  30244.  
  30245. .ce
  30246. A DCE or DTE which receives one or more valid I frames having sequence 
  30247. errors or subsequent supervisory frames (RR, RNR and REJ) shall accept 
  30248. the 
  30249. .ce
  30250. control information contained in the N(R) field and the P or F bit to perform 
  30251. data link control functions; e.g.\ to receive acknowledgement of previously 
  30252. .ce
  30253. transmitted I\ frames and to cause the DCE or DTE to respond (P bit set to 1).
  30254. .ce
  30255. .parag
  30256. .ce
  30257.  
  30258. .ce
  30259. The means specified in \(sc\(sc\ 2.3.5.2.1 and 2.3.5.2.2 shall be available 
  30260. for initiating the retransmission of lost or errored I\ frames following 
  30261. the 
  30262. .ce
  30263. occurrence of an N(S) sequence error condition.
  30264. .ce
  30265. .parag
  30266. .ce
  30267. 2.3.5.2.1
  30268. .ce
  30269. \fIREJ recovery\fR 
  30270. .ce
  30271. .parag
  30272. .ce
  30273. The REJ frame is used by a receiving DCE or DTE to initiate a
  30274. .ce
  30275. recovery (retransmission) following the detection of an N(S) sequence error.
  30276. .ce
  30277. .parag
  30278. .ce
  30279.  
  30280. .ce
  30281. With respect to each direction of transmission on the data link, only one 
  30282. \*Qsent REJ\*U exception condition from a DCE or DTE, to a DTE or DCE, 
  30283. is 
  30284. .ce
  30285. established at a time. A \*Qsent REJ\*U exception condition is cleared when the
  30286. .ce
  30287. requested I\ frame is received.
  30288. .ce
  30289. .parag
  30290. .ce
  30291.  
  30292. .ce
  30293. A DCE or DTE receiving a REJ frame initiates sequential
  30294. .ce
  30295. (re\(hy)transmission of I\ frames starting with the I\ frame indicated 
  30296. by the N(R) contained in the REJ frame. The retransmitted frames may contain 
  30297. an N(R) and a P bit that are updated from, and therefore different from, 
  30298. the ones contained in the originally transmitted I\ frames. 
  30299. .ce
  30300. .parag
  30301. .ce
  30302. 2.3.5.2.2
  30303. .ce
  30304. \fITime\(hyout recovery\fR 
  30305. .ce
  30306. .parag
  30307. .ce
  30308. If a DCE or DTE, due to a transmission error, does not receive (or receives 
  30309. and discards) a single I\ frame or the last I\ frame(s) in a sequence of 
  30310. I\ frames, it will not detect an N(S) sequence error condition and, therefore, 
  30311. will not transmit a REJ frame. The DTE or DCE which transmitted the 
  30312. .ce
  30313. unacknowledged I\ frame(s) shall, following the completion of a system 
  30314. specified time\(hyout period (see \(sc\(sc\ 2.4.5.1 and 2.4.5.9 below), 
  30315. take appropriate recovery action to determine at which I\ frame retransmission 
  30316. must begin. The 
  30317. .ce
  30318. retransmitted frame(s) may contain an N(R) and a P bit that is updated from,
  30319. .ce
  30320. and therefore different from, the ones contained in the originally transmitted 
  30321. frame(s). 
  30322. .ce
  30323. .parag
  30324. .ce
  30325. 2.3.5.3
  30326. .ce
  30327. \fIInvalid frame\fR 
  30328. .ce
  30329. \fI condition\fR 
  30330. .ce
  30331. .parag
  30332. .ce
  30333. Any frame which is invalid will be discarded, and no action is
  30334. .ce
  30335. taken as the result of that frame. An invalid frame is defined as one
  30336. .ce
  30337. which:
  30338. .ce
  30339. .parag
  30340. .ce
  30341. a)
  30342. .ce
  30343. is not properly bounded by two flags;
  30344. .ce
  30345. .parag
  30346. .ce
  30347. b)
  30348. .ce
  30349. in basic (modulo 8) operation, contains fewer than 32 bits
  30350. .ce
  30351. between flags; in extended (modulo\ 128) operation, contains
  30352. .ce
  30353. fewer than 40\ bits between flags of frames that contain sequence
  30354. .ce
  30355. numbers or 32\ bits between flags of frames that do not contain
  30356. .ce
  30357. sequence numbers;
  30358. .ce
  30359. .parag
  30360. .ce
  30361. c)
  30362. .ce
  30363. contains a Frame Check Sequence (FCS) error; or
  30364. .ce
  30365. .parag
  30366. .ce
  30367. d)
  30368. .ce
  30369. contains an address other than A or B (for single link
  30370. .ce
  30371. operation) or other than C or D (for multilink operation).
  30372. .ce
  30373. .parag
  30374. .ce
  30375.  
  30376. .ce
  30377. For those networks that are octet aligned, a detection of
  30378. .ce
  30379. non\(hyoctet alignment may be made at the Data Link Layer by adding a frame
  30380. .ce
  30381. validity check that requires the number of bits between the opening flag and
  30382. .ce
  30383. the closing flag, excluding bits inserted for transparency, to be an integral 
  30384. number of octets in length, or the frame is considered invalid. 
  30385. .ce
  30386. .parag
  30387. .ce
  30388. 2.3.5.4
  30389. .ce
  30390. \fIFrame rejection\fR 
  30391. .ce
  30392. \fI condition\fR 
  30393. .ce
  30394. .parag
  30395. .ce
  30396. A frame rejection condition is established upon the receipt of an error\(hyfree 
  30397. frame with one of the conditions listed in \(sc\ 2.3.4.9 above. 
  30398. .ce
  30399. .parag
  30400. .ce
  30401.  
  30402. .ce
  30403. At the DCE or DTE, this frame rejection exception condition is
  30404. .ce
  30405. reported by an FRMR response for appropriate DTE or DCE action, respectively. 
  30406. Once a DCE has established such an exception condition, no additional I\ 
  30407. frames are accepted until the condition is reset by the DTE, except for 
  30408. examination of the P bit. The FRMR response may be repeated at each opportunity, 
  30409. as specified in \(sc\ 2.4.7.3, until recovery is effected by the DTE, or 
  30410. until the DCE initiates its own recovery in case the DTE does not respond. 
  30411. .ce
  30412. .parag
  30413. .ce
  30414. 2.3.5.5
  30415. .ce
  30416. \fIExcessive idle channel state condition on incoming\fR 
  30417. .ce
  30418.  
  30419. .ce
  30420. \fIchannel\fR 
  30421. .ce
  30422. .parag
  30423. .ce
  30424. Upon detection of an idle channel state condition (see \(sc\ 2.2.12.2 above) 
  30425. on the incoming channel, the DCE shall wait for a period\ T3 (see 
  30426. .ce
  30427. \(sc\ 2.4.8.3 below) without taking any specific action, waiting for detection 
  30428. of a return to the active channel state (i.e.,\ detection of at least one 
  30429. flag 
  30430. .ce
  30431. sequence). After the period\ T3, the DCE shall notify the higher layer 
  30432. (e.g.\ the Packet Layer or the MLP) of the excessive idle channel state 
  30433. condition, but 
  30434. .ce
  30435. shall not take any action that would preclude the DTE from establishing the
  30436. .ce
  30437. data link by normal data link set\(hyup procedures.
  30438. .ce
  30439. .parag
  30440. .ce
  30441. \fINote\fR 
  30442. .ce
  30443. \ \(em\ Other actions to be taken by the DCE at the Data Link Layer upon 
  30444. expiration of period\ T3 is a subject for further study. 
  30445. .ce
  30446. .parag
  30447. .ce
  30448.  
  30449. .ce
  30450. 2.4
  30451. .ce
  30452. \fIDescription of the \fR 
  30453. .ce
  30454. \fILAPB procedure\fR 
  30455. .ce
  30456. .parag
  30457. .ce
  30458. 2.4.1
  30459. .ce
  30460. \fILAPB basic and extended modes of operation\fR 
  30461. .ce
  30462. .parag
  30463. .ce
  30464. In accordance with the system choice made by the DTE at
  30465. .ce
  30466. subscription time, the DCE will either support modulo\ 8 (basic) operation or
  30467. .ce
  30468. will support modulo\ 128 (extended) operation. Changing from basic operation 
  30469. to extended operation, or vice versa, in the DCE requires resubscription 
  30470. by the 
  30471. .ce
  30472. DTE for the desired service, and is not supported dynamically.
  30473. .ce
  30474. .parag
  30475. .ce
  30476. Table 5/X.25 indicates the command and response control field formats used 
  30477. with the basic (modulo\ 8) service. The mode\(hysetting command employed 
  30478. to 
  30479. .ce
  30480. initialize (set up) or reset the basic mode is the SABM command. Table 
  30481. 6/X.25 indicates the command and response control field formats used with 
  30482. the extended (modulo\ 128) service. The mode\(hysetting command employed 
  30483. to initialize (set up) or reset the extended mode is the SABME command. 
  30484. .ce
  30485. .parag
  30486. .ce
  30487. 2.4.2
  30488. .ce
  30489. \fILAPB procedure for addressing\fR 
  30490. .ce
  30491. .parag
  30492. .ce
  30493. The address field identifies a frame as either a command or a
  30494. .ce
  30495. response. A command frame contains the address of the DCE or DTE to which 
  30496. the command is being sent. A response frame contains the address of the 
  30497. DCE or DTE sending the frame. 
  30498. .ce
  30499. .parag
  30500. .ce
  30501. In order to allow differentiation between single link operation and
  30502. .ce
  30503. the optional multilink operation for diagnostic and/or maintenance reasons,
  30504. .ce
  30505. different address pair encodings are assigned to data links operating with
  30506. .ce
  30507. multilink procedure compared to data links operating with the single link
  30508. .ce
  30509. procedure.
  30510. .ce
  30511. .parag
  30512. .ce
  30513. Frames containing commands transferred from the DCE to the DTE will
  30514. .ce
  30515. contain the address\ A for the single link operation and address\ C for the
  30516. .ce
  30517. multilink operation.
  30518. .ce
  30519. .parag
  30520. .ce
  30521. Frames containing responses transferred from the DCE to the DTE will contain 
  30522. the address\ B for the single link operation and address\ D for the 
  30523. .ce
  30524. multilink operation.
  30525. .ce
  30526. .parag
  30527. .ce
  30528.  
  30529. .ce
  30530. Frames containing commands transferred from the DTE to the DCE shall contain 
  30531. the address\ B for the single link operation and address\ D for the 
  30532. .ce
  30533. multilink operation.
  30534. .ce
  30535. .parag
  30536. .ce
  30537. Frames containing responses transferred from the DTE to the DCE shall contain 
  30538. the address\ A for the single link operation and address\ C for the 
  30539. .ce
  30540. multilink operation.
  30541. .ce
  30542. .parag
  30543. .ce
  30544. These addresses are coded as follows:
  30545. .ce
  30546. .parag
  30547. .ce
  30548. Address
  30549. .ce
  30550. 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8
  30551. .ce
  30552. .parag
  30553. .ce
  30554. Single link operation
  30555. .ce
  30556. \ \ A
  30557. .ce
  30558. 1\ 1\ 0\ 0\ 0\ 0\ 0\ 0
  30559. .ce
  30560. .line
  30561. .ce
  30562. \ \ B
  30563. .ce
  30564. 1\ 0\ 0\ 0\ 0\ 0\ 0\ 0
  30565. .ce
  30566. .parag
  30567. .ce
  30568. Multilink operation
  30569. .ce
  30570. \ \ C
  30571. .ce
  30572. 1\ 1\ 1\ 1\ 0\ 0\ 0\ 0
  30573. .ce
  30574. .line
  30575. .ce
  30576. \ \ D
  30577. .ce
  30578. 1\ 1\ 1\ 0\ 0\ 0\ 0\ 0
  30579. .ce
  30580. .parag
  30581. .ce
  30582. \fINote\fR 
  30583. .ce
  30584. \ \(em\ The DCE will discard all frames received with an address other 
  30585. than\ A or\ B (single link operation), or\ C or\ D (multilink operation). 
  30586. .ce
  30587. .parag
  30588. .ce
  30589. 2.4.3
  30590. .ce
  30591. \fILAPB procedure for the use of the P/F bit\fR 
  30592. .ce
  30593. .parag
  30594. .ce
  30595. The DCE or DTE receiving an SABM/SABME, DISC, supervisory command or I\ 
  30596. frame with the P\ bit set to\ 1 will set the F\ bit to\ 1 in the next response 
  30597. frame it transmits. 
  30598. .ce
  30599. .parag
  30600. .ce
  30601. The response frame returned by the DCE to an SABM/SABME or DISC
  30602. .ce
  30603. command with the P\ bit set to\ 1 will be a UA or DM response with the 
  30604. F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  30605. with the P\ bit set to\ 1, received during the information transfer phase, 
  30606. will be an RR, REJ, RNR or FRMR response with the F\ bit set to\ 1. The 
  30607. response frame returned by the 
  30608. .ce
  30609. DCE to a supervisory command with the P\ bit set to\ 1, received during the
  30610. .ce
  30611. information transfer phase, will be an RR, REJ, RNR or FRMR response with 
  30612. the F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  30613. or 
  30614. .ce
  30615. supervisory frame with the P\ bit set to\ 1, received during the disconnected
  30616. .ce
  30617. phase, will be a DM response with the F\ bit set to\ 1.
  30618. .ce
  30619. .parag
  30620. .ce
  30621. The P bit may be used by the DCE in conjunction with the timer
  30622. .ce
  30623. recovery condition (see \(sc\ 2.4.5.9 below).
  30624. .ce
  30625. .parag
  30626. .ce
  30627. \fINote\fR 
  30628. .ce
  30629. \ \(em\ Other use of the P bit by the DCE is a subject for further
  30630. .ce
  30631. study.
  30632. .ce
  30633. .parag
  30634. .ce
  30635. 2.4.4
  30636. .ce
  30637. \fILAPB procedure for data link set\(hyup and disconnection\fR 
  30638. .ce
  30639. .parag
  30640. .ce
  30641.  
  30642. .ce
  30643. 2.4.4.1
  30644. .ce
  30645. \fIData link set\(hyup\fR 
  30646. .ce
  30647. .parag
  30648. .ce
  30649. The DCE will indicate that it is able to set up the data link by
  30650. .ce
  30651. transmitting contiguous flags (active channel state).
  30652. .ce
  30653. .parag
  30654. .ce
  30655. Either the DTE or the DCE may initiate data link set\(hyup. Prior to
  30656. .ce
  30657. initiation of data link set\(hyup, either the DCE or the DTE may initiate data
  30658. .ce
  30659. link
  30660. .ce
  30661. disconnection (see \(sc\ 2.4.4.3) for the purpose of insuring that the 
  30662. DCE and the DTE are in the same phase. The DCE may also transmit an unsolicited 
  30663. DM response to request the DTE to initiate data link set\(hyup. 
  30664. .ce
  30665. .parag
  30666. .ce
  30667. The DTE shall initiate data link set\(hyup by transmitting an SABM/SABME 
  30668. command to the DCE. If, upon receipt of the SABM/SABME command correctly, 
  30669. the DCE determines that it can enter the information transfer phase, it 
  30670. will return a UA response to the DTE, will reset its send and receive state 
  30671. variables V(S) and V(R) to zero, and will consider that the data link is 
  30672. set up. If, upon 
  30673. .ce
  30674. receipt
  30675. .ce
  30676. of the SABM/SABME command correctly, the DCE determines that it cannot enter
  30677. .ce
  30678. the information transfer phase, it will return a DM response to the DTE as a
  30679. .ce
  30680. denial to the data link set\(hyup initialization and will consider that the
  30681. .ce
  30682. data link is
  30683. .ce
  30684. \fInot\fR 
  30685. .ce
  30686.  set up. In order to avoid misinterpretation of the DM response received, 
  30687. it is suggested that the DTE always sends its SABM/SABME command with the 
  30688. P\ bit set to\ 1. Otherwise, it is not possible to differentiate a DM response 
  30689. intended as a denial to data link set\(hyup from a DM response that is 
  30690. issued in a separate unsolicited sense as a request for a mode\(hysetting 
  30691. command (as described 
  30692. .ce
  30693. in\ \(sc\ 2.4.4.4.2).
  30694. .ce
  30695. .parag
  30696. .ce
  30697. The DCE will initiate data link set\(hyup by transmitting an SABM/SABME 
  30698. command to the DTE and starting its Timer\ T1 in order to determine when 
  30699. too 
  30700. .ce
  30701. much time has elapsed waiting for a reply (see \(sc\ 2.4.8.1 below). Upon 
  30702. reception of a UA response from the DTE, the DCE will reset its send and 
  30703. receive state 
  30704. .ce
  30705. variables\ V(S) and\ V(R) to zero, will stop its Timer\ T1, and will consider 
  30706. that the data link is set up. Upon reception of a DM response from the 
  30707. DTE as a 
  30708. .ce
  30709. denial
  30710. .ce
  30711. to the data link set\(hyup initialization, the DCE will stop its Timer\ 
  30712. T1 and will consider that the data link is \fInot\fR 
  30713. .ce
  30714. set up.
  30715. .ce
  30716. .parag
  30717. .ce
  30718.  
  30719. .ce
  30720. The DCE, having sent the SABM/SABME command, will ignore and discard any 
  30721. frames except an SABM/SABME or DISC command, or a UA or DM response 
  30722. .ce
  30723. received from the DTE. The receipt of an SABM/SABME or DISC command from the
  30724. .ce
  30725. DTE will result in a collision situation that is resolved per \(sc\ 2.4.4.5 
  30726. below. Frames other than the UA and DM responses sent in response to a 
  30727. received 
  30728. .ce
  30729. SABM/SABME or DISC command will be sent only after the data link is set 
  30730. up and if no outstanding SABM/SABME command exists. 
  30731. .ce
  30732. .parag
  30733. .ce
  30734. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  30735. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  30736. .ce
  30737. resend the SABM/SABME command and will restart Timer\ T1. After transmission 
  30738. of the SABM/SABME command N2 times by the DCE, appropriate higher layer 
  30739. recovery action will be initiated. The value of N2 is defined in \(sc\ 
  30740. 2.4.8.4 below. 
  30741. .ce
  30742. .parag
  30743. .ce
  30744. 2.4.4.2
  30745. .ce
  30746. \fIInformation transfer phase\fR 
  30747. .ce
  30748. .parag
  30749. .ce
  30750. After having transmitted the UA response to the SABM/SABME command or having 
  30751. received the UA response to a transmitted SABM/SABME command, the DCE will 
  30752. accept and transmit I and supervisory frames according to the procedures 
  30753. described in \(sc\ 2.4.5 below. 
  30754. .ce
  30755. .parag
  30756. .ce
  30757.  
  30758. .ce
  30759. When receiving the SABM/SABME command while in the information
  30760. .ce
  30761. transfer phase, the DCE will conform to the data link resetting procedure
  30762. .ce
  30763. described in \(sc\ 2.4.7 below.
  30764. .ce
  30765. .parag
  30766. .ce
  30767. 2.4.4.3
  30768. .ce
  30769. \fIData link disconnection\fR 
  30770. .ce
  30771. .parag
  30772. .ce
  30773. The DTE shall initiate a disconnect of the data link by
  30774. .ce
  30775. transmitting a DISC command to the DCE. On correctly receiving a DISC command 
  30776. in the information transfer phase, the DCE will send a UA response and 
  30777. enter 
  30778. .ce
  30779. the disconnected phase. On correctly receiving a DISC command in the
  30780. .ce
  30781. disconnected phase, the DCE will send a DM response and remain in the
  30782. .ce
  30783. disconnected phase. In order to avoid misinterpretation of the DM response
  30784. .ce
  30785. received, it is suggested that the DTE always sends its DISC command with 
  30786. the P\ bit set to\ 1. Otherwise, it is not possible to differentiate a 
  30787. DM response 
  30788. .ce
  30789. intended as an indication that the DCE is already in the disconnected phase
  30790. .ce
  30791. from a DM response that is issued in a separate unsolicited sense as a 
  30792. request for a mode\(hysetting command (as described in \(sc\ 2.4.4.4.2). 
  30793. .ce
  30794. .parag
  30795. .ce
  30796.  
  30797. .ce
  30798. The DCE will initiate a disconnect of the data link by transmitting a DISC 
  30799. command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 below). 
  30800. Upon reception of an UA response from the DTE, the DCE will stop its Timer\ 
  30801. T1 and 
  30802. .ce
  30803. will enter the disconnected phase. Upon reception of a DM response from 
  30804. the DTE as an indication that the DTE was already in the disconnected phase, 
  30805. the DCE 
  30806. .ce
  30807. will stop its Timer\ T1 and will enter the disconnected phase.
  30808. .ce
  30809. .parag
  30810. .ce
  30811. The DCE, having sent the DISC command, will ignore and discard any
  30812. .ce
  30813. frames except an SABM/SABME or DISC command, or a UA or DM response received
  30814. .ce
  30815. from the DTE. The receipt of an SABM/SABME or DISC command from the DTE will
  30816. .ce
  30817. result in a collision situation that is resolved per \(sc\ 2.4.4.5 below.
  30818. .ce
  30819. .parag
  30820. .ce
  30821.  
  30822. .ce
  30823. After the DCE sends the DISC command, if a UA or DM response is not
  30824. .ce
  30825. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  30826. resend the DISC command and will restart Timer\ T1. After transmission 
  30827. of the DISC 
  30828. .ce
  30829. command N2 times by the DCE, appropriate higher layer recovery action will 
  30830. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  30831. .ce
  30832. .parag
  30833. .ce
  30834. 2.4.4.4
  30835. .ce
  30836. \fIDisconnected phase\fR 
  30837. .ce
  30838. .parag
  30839. .ce
  30840. 2.4.4.4.1
  30841. .ce
  30842. After having received a DISC command from the DTE and
  30843. .ce
  30844. returned a UA response to the DTE, or having received the UA response to a
  30845. .ce
  30846. transmitted DISC command, the DCE will enter the disconnected phase.
  30847. .ce
  30848. .parag
  30849. .ce
  30850. In the disconnected phase, the DCE may initiate data link set\(hyup. In 
  30851. the disconnected phase, the DCE will react to the receipt of an SABM/SABME 
  30852. command as described in \(sc\ 2.4.4.1 above and will transmit a DM response 
  30853. in 
  30854. .ce
  30855. answer to a received DISC command. When receiving any other command (defined, 
  30856. or undefined or not implemented) with the P\ bit set to\ 1, the DCE will 
  30857. transmit a DM response with the F\ bit set to\ 1. Other frames received 
  30858. in the 
  30859. .ce
  30860. disconnected phase will be ignored by the DCE.
  30861. .ce
  30862. .parag
  30863. .ce
  30864. 2.4.4.4.2
  30865. .ce
  30866. When the DCE enters the disconnected phase after
  30867. .ce
  30868. detecting error conditions as listed in \(sc\ 2.4.6 below, or after an internal
  30869. .ce
  30870. malfunction, it may indicate this by sending a DM response rather than 
  30871. a DISC command. In these cases, the DCE will transmit a DM response and 
  30872. start its 
  30873. .ce
  30874. Timer\ T1 (see \(sc\ 2.4.8.1 below).
  30875. .ce
  30876. .parag
  30877. .ce
  30878. If Timer T1 runs out before the reception of an SABM/SABME or DISC command 
  30879. from the DTE, the DCE will retransmit the DM response and restart 
  30880. .ce
  30881. Timer\ T1. After transmission of the DM response N2 times, the DCE will 
  30882. remain in the disconnected phase and appropriate recovery actions will 
  30883. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  30884. .ce
  30885. .parag
  30886. .ce
  30887. Alternatively, after an internal malfunction, the DCE may either
  30888. .ce
  30889. initiate a data link resetting procedure (see \(sc\ 2.4.7 below) or disconnect 
  30890. the data link (see \(sc\ 2.4.4.3 above) prior to initiating a data link 
  30891. set\(hyup 
  30892. .ce
  30893. procedure (see \(sc\ 2.4.4.1 above).
  30894. .ce
  30895. .parag
  30896. .ce
  30897. 2.4.4.5
  30898. .ce
  30899. \fICollision of unnumbered commands\fR 
  30900. .ce
  30901. .parag
  30902. .ce
  30903. Collision situations shall be resolved in the following way:
  30904. .ce
  30905. .parag
  30906. .ce
  30907. 2.4.4.5.1
  30908. .ce
  30909. If the sent and received unnumbered commands are the
  30910. .ce
  30911. same, the DCE and the DTE shall each send the UA response at the earliest
  30912. .ce
  30913. possible opportunity. The DCE shall enter the indicated phase either,
  30914. .ce
  30915. .parag
  30916. .ce
  30917.  
  30918. .ce
  30919. 1)
  30920. .ce
  30921. after receiving the UA response,
  30922. .ce
  30923. .parag
  30924. .ce
  30925. 2)
  30926. .ce
  30927. after sending the UA response, or
  30928. .ce
  30929. .parag
  30930. .ce
  30931. 3)
  30932. .ce
  30933. after timing out waiting for the UA response having sent a
  30934. .ce
  30935. UA response.
  30936. .ce
  30937. .parag
  30938. .ce
  30939. In the case of 2) above, the DCE will accept a subsequent UA
  30940. .ce
  30941. response to the mode\(hysetting command it issued without causing an exception
  30942. .ce
  30943. condition if received within the time\(hyout interval.
  30944. .ce
  30945. .parag
  30946. .ce
  30947.  
  30948. .ce
  30949. 2.4.4.5.2
  30950. .ce
  30951. If the sent and received unnumbered commands are
  30952. .ce
  30953. different, the DCE and the DTE shall each enter the disconnected phase and
  30954. .ce
  30955. issue a DM response at the earliest possible opportunity.
  30956. .ce
  30957. .parag
  30958. .ce
  30959. 2.4.4.6
  30960. .ce
  30961. \fICollision of DM response with SABM/SABME or DISC\fR 
  30962. .ce
  30963.  
  30964. .ce
  30965. \fIcommand\fR 
  30966. .ce
  30967. .parag
  30968. .ce
  30969. When a DM response is issued by the DCE or DTE as an unsolicited
  30970. .ce
  30971. response to request the DTE or DCE, respectively, to issue a mode\(hysetting
  30972. .ce
  30973. command as described in \(sc\ 2.4.4.4, a collision between an SABM/SABME 
  30974. or DISC 
  30975. .ce
  30976. command and the unsolicited DM response may occur. In order to avoid
  30977. .ce
  30978. misinterpretation of the DM response received, the DTE always sends its
  30979. .ce
  30980. SABM/SABME or DISC command with the P\ bit set to\ 1.
  30981. .ce
  30982. .parag
  30983. .ce
  30984. 2.4.4.7
  30985. .ce
  30986. \fICollision of DM responses\fR 
  30987. .ce
  30988. .parag
  30989. .ce
  30990. A contention situation may occur when both the DCE and the DTE
  30991. .ce
  30992. issue a DM response to request a mode\(hysetting command. In this case, the DTE
  30993. .ce
  30994. will issue an SABM/SABME command to resolve the contention situation.
  30995. .ce
  30996. .parag
  30997. .ce
  30998.  
  30999. .ce
  31000. 2.4.5
  31001. .ce
  31002. \fILAPB procedures for information transfer\fR 
  31003. .ce
  31004. .parag
  31005. .ce
  31006. The procedures which apply to the transmission of I\ frames in each direction 
  31007. during the information transfer phase are described below. 
  31008. .ce
  31009. .parag
  31010. .ce
  31011. In the following, \*Qnumber one higher\*U is in reference to a
  31012. .ce
  31013. continuously repeated sequence series, i.e., 7 is 1\ higher than 6 and 0 is
  31014. .ce
  31015. 1\ higher than 7 for modulo\ 8 series, and 127 is 1\ higher than 126 and 0 is
  31016. .ce
  31017. 1\ higher than 127 for modulo\ 128 series.
  31018. .ce
  31019. .parag
  31020. .ce
  31021. 2.4.5.1
  31022. .ce
  31023. \fISending I frames\fR 
  31024. .ce
  31025. .parag
  31026. .ce
  31027. When the DCE has an I frame to transmit (i.e. an I frame not
  31028. .ce
  31029. already transmitted, or having to be retransmitted as described in \(sc\ 
  31030. 2.4.5.6 
  31031. .ce
  31032. below), it will transmit it with an N(S) equal to its current send state
  31033. .ce
  31034. variable V(S), and an N(R) equal to its current receive state variable 
  31035. V(R). At the end of the transmission of the I\ frame, the DCE will increment 
  31036. its send 
  31037. .ce
  31038. state variable V(S) by\ 1.
  31039. .ce
  31040. .parag
  31041. .ce
  31042. If Timer T1 is not running at the time of transmission of an I frame, it 
  31043. will be started. 
  31044. .ce
  31045. .parag
  31046. .ce
  31047. If the send state variable V(S) is equal to the last value of N(R)
  31048. .ce
  31049. received plus \fIk\fR 
  31050. .ce
  31051. (where \fIk\fR 
  31052. .ce
  31053. is the maximum number of outstanding I\ frames \(em
  31054. .ce
  31055. see \(sc\ 2.4.8.6 below), the DCE will not transmit any new I\ frames, but may
  31056. .ce
  31057. retransmit an I\ frame as described in \(sc\(sc\ 2.4.5.6 or 2.4.5.9 below.
  31058. .ce
  31059. .parag
  31060. .ce
  31061. When the DCE is in the busy condition, it may still transmit I frames, 
  31062. provided that the DTE is not busy. When the DCE is in the frame rejection 
  31063. .ce
  31064. condition, it will stop transmitting I\ frames.
  31065. .ce
  31066. .parag
  31067. .ce
  31068. 2.4.5.2
  31069. .ce
  31070. \fIReceiving an I frame\fR 
  31071. .ce
  31072. .parag
  31073. .ce
  31074. 2.4.5.2.1
  31075. .ce
  31076. When the DCE is not in a busy condition and receives a valid I\ frame whose 
  31077. send sequence number N(S) is equal to the DCE receive state 
  31078. .ce
  31079. variable V(R), the DCE will accept the information field of this frame,
  31080. .ce
  31081. increment by one its receive state variable V(R), and act as follows:
  31082. .ce
  31083. .parag
  31084. .ce
  31085.  
  31086. .ce
  31087. a)
  31088. .ce
  31089. If the DCE is still not in a busy condition:
  31090. .ce
  31091. .parag
  31092. .ce
  31093. i)
  31094. .ce
  31095. If an I frame is available for transmission by the
  31096. .ce
  31097. DCE, it may act as in \(sc\ 2.4.5.1 above and acknowledge
  31098. .ce
  31099. the received I frame by setting N(R) in the control field
  31100. .ce
  31101. of the next transmitted I\ frame to the value of the DCE
  31102. .ce
  31103. receive state variable V(R). Alternatively, the DCE may
  31104. .ce
  31105. acknowledge the received I\ frame by transmitting an RR
  31106. .ce
  31107. frame with the N(R) equal to the value of the DCE receive
  31108. .ce
  31109. state variable V(R).
  31110. .ce
  31111. .parag
  31112. .ce
  31113. ii)
  31114. .ce
  31115. If no I frame is available for transmission by the
  31116. .ce
  31117. DCE, it will transmit an RR frame with N(R) equal to the
  31118. .ce
  31119. value of the DCE receive state variable V(R).
  31120. .ce
  31121. .parag
  31122. .ce
  31123.  
  31124. .ce
  31125. b)
  31126. .ce
  31127. If the DCE is now in a busy condition, it will transmit an
  31128. .ce
  31129. RNR frame with N(R) equal to the value of the DCE receive
  31130. .ce
  31131. state variable V(R) (see \(sc\ 2.4.5.8).
  31132. .ce
  31133. .parag
  31134. .ce
  31135.  
  31136. .ce
  31137. 2.4.5.2.2
  31138. .ce
  31139. When the DCE is in a busy condition, it may ignore the
  31140. .ce
  31141. information field contained in any received I\ frame.
  31142. .ce
  31143. .parag
  31144. .ce
  31145. 2.4.5.3
  31146. .ce
  31147. \fIReception of invalid frames\fR 
  31148. .ce
  31149. .parag
  31150. .ce
  31151. When the DCE receives an invalid frame (see \(sc\ 2.3.5.3), this frame 
  31152. will be discarded. 
  31153. .ce
  31154. .parag
  31155. .ce
  31156. 2.4.5.4
  31157. .ce
  31158. \fIReception of out\(hyof\(hysequence I frames\fR 
  31159. .ce
  31160. .parag
  31161. .ce
  31162. When the DCE receives a valid I frame whose send sequence number
  31163. .ce
  31164. N(S) is incorrect, i.e.,\ not equal to the current DCE receive state variable
  31165. .ce
  31166. V(R), it will discard the information field of the I\ frame and transmit 
  31167. an REJ frame with the N(R) set to one higher than the N(S) of the last 
  31168. correctly 
  31169. .ce
  31170. received I\ frame. The REJ frame will be a command frame with the P\ bit 
  31171. set to\ 1 if an acknowledged transfer of the retransmission request is 
  31172. required; 
  31173. .ce
  31174. otherwise the REJ frame may be either a command or a response frame. The DCE
  31175. .ce
  31176. will then discard the information field of all I\ frames received until the
  31177. .ce
  31178. expected I\ frame is correctly received. When receiving the expected I\ frame,
  31179. .ce
  31180. the DCE will then acknowledge the I\ frame as described in \(sc\ 2.4.5.2 
  31181. above. The DCE will use the N(R) and P\ bit information in the discarded 
  31182. I\ frames as 
  31183. .ce
  31184. described in \(sc\ 2.3.5.2 above.
  31185. .ce
  31186. .parag
  31187. .ce
  31188. 2.4.5.5
  31189. .ce
  31190. \fIReceiving acknowledgement\fR 
  31191. .ce
  31192. .parag
  31193. .ce
  31194. When correctly receiving an I frame or a supervisory frame (RR, RNR or 
  31195. REJ), even in the busy condition, the DCE will consider the N(R) contained 
  31196. in this frame as an acknowledgement for all I\ frames it has transmitted 
  31197. with an N(S) up to and including the received N(R)\(em1. The DCE will stop 
  31198. Timer\ T1 when it correctly receives an I\ frame or a supervisory frame 
  31199. with the N(R) higher 
  31200. .ce
  31201. than the last received N(R) (actually acknowledging some I\ frames), or 
  31202. an REJ frame with an N(R) equal to the last received N(R). 
  31203. .ce
  31204. .parag
  31205. .ce
  31206.  
  31207. .ce
  31208. If Timer T1 has been stopped by the receipt on an I, RR or RNR frame, and 
  31209. if there are outstanding I\ frames still unacknowledged, the DCE will 
  31210. .ce
  31211. restart Timer\ T1. If Timer\ T1 then runs out, the DCE will follow the 
  31212. recovery procedure (\(sc\ 2.4.5.9 below) with respect to the unacknowledged 
  31213. I\ frames. If 
  31214. .ce
  31215. Timer\ T1 has been stopped by the receipt of an REJ frame, the DCE will 
  31216. follow the retransmission procedures in \(sc\ 2.4.5.6 below. 
  31217. .ce
  31218. .parag
  31219. .ce
  31220. 2.4.5.6
  31221. .ce
  31222. \fIReceiving an REJ frame\fR 
  31223. .ce
  31224. .parag
  31225. .ce
  31226. When receiving an REJ frame, the DCE will set its send state
  31227. .ce
  31228. variable V(S) to the N(R) received in the REJ control field. It will transmit 
  31229. the corresponding I\ frame as soon as it is available or retransmit it 
  31230. in 
  31231. .ce
  31232. accordance with the procedures described in \(sc\ 2.4.5.1 above. (Re)transmission 
  31233. will conform to the following procedure: 
  31234. .ce
  31235. .parag
  31236. .ce
  31237. i)
  31238. .ce
  31239. if the DCE is transmitting a supervisory command or response
  31240. .ce
  31241. when it receives the REJ frame, it will complete that
  31242. .ce
  31243. transmission before commencing transmission of the requested
  31244. .ce
  31245. I\ frame;
  31246. .ce
  31247. .parag
  31248. .ce
  31249.  
  31250. .ce
  31251. ii)
  31252. .ce
  31253. if the DCE is transmitting an unnumbered command or
  31254. .ce
  31255. response when it receives the REJ frame, it will ignore the
  31256. .ce
  31257. request for retransmission;
  31258. .ce
  31259. .parag
  31260. .ce
  31261. iii)
  31262. .ce
  31263. if the DCE is transmitting an I frame when the REJ frame
  31264. .ce
  31265. is received, it may abort the I\ frame and commence transmission
  31266. .ce
  31267. of the requested I\ frame immediately after abortion;
  31268. .ce
  31269. .parag
  31270. .ce
  31271. iv)
  31272. .ce
  31273. if the DCE is not transmitting any frame when the REJ frame
  31274. .ce
  31275. is received, it will commence transmission of the requested
  31276. .ce
  31277. I\ frame immediately.
  31278. .ce
  31279. .parag
  31280. .ce
  31281. In all cases, if other unacknowledged I frames had already been
  31282. .ce
  31283. transmitted following the one indicated in the REJ frame, then those I 
  31284. frames will be retransmitted by the DCE following the retransmission of 
  31285. the requested I\ frame. Other I\ frames not yet transmitted may be transmitted 
  31286. following the 
  31287. .ce
  31288. retransmitted I\ frames.
  31289. .ce
  31290. .parag
  31291. .ce
  31292. If the REJ frame was received from the DTE as a command with the P bit 
  31293. set to\ 1, the DCE will transmit an RR, RNR or REJ response with the F 
  31294. bit set to\ 1 before transmitting or retransmitting the corresponding I\ 
  31295. frame. 
  31296. .ce
  31297. .parag
  31298. .ce
  31299. 2.4.5.7
  31300. .ce
  31301. \fIReceiving an RNR frame\fR 
  31302. .ce
  31303. .parag
  31304. .ce
  31305. After receiving an RNR frame whose N(R) acknowledges all frames
  31306. .ce
  31307. previously transmitted, the DCE will stop Timer\ T1 and may then transmit
  31308. .ce
  31309. an I\ frame, with the P\ bit set to\ 0, whose send sequence number is
  31310. .ce
  31311. equal to the N(R) indicated in the RNR frame, restarting Timer\ T1 as it 
  31312. does. After receiving an RNR frame whose N(R) indicates a previously transmitted 
  31313. .ce
  31314. frame, the DCE will not transmit or retransmit any I\ frame, Timer\ T1 being
  31315. .ce
  31316. already running. In either case, if the Timer\ T1 runs out before receipt 
  31317. of a busy clearance indication, the DCE will follow the procedure described 
  31318. in 
  31319. .ce
  31320. \(sc\ 2.4.5.9\ below. In any case, the DCE will not transmit any other 
  31321. I\ frames 
  31322. .ce
  31323. before receiving an RR or REJ frame, or before the completion of a link
  31324. .ce
  31325. resetting procedure.
  31326. .ce
  31327. .parag
  31328. .ce
  31329. Alternatively, after receiving an RNR frame, the DCE may wait for a
  31330. .ce
  31331. period of time (e.g.,\ the length of the Timer\ T1) and then transmit a
  31332. .ce
  31333. supervisory command frame (RR, RNR or REJ) with the P\ bit set to\ 1, and 
  31334. start Timer\ T1, in order to determine if there is any change in the receive 
  31335. status of the DTE. The DTE shall respond to the P\ bit set to\ 1 with a 
  31336. supervisory 
  31337. .ce
  31338. response frame (RR, RNR or REJ) with the F\ bit set to\ 1 indicating either
  31339. .ce
  31340. continuance of the busy condition (RNR) or clearance of the busy condition 
  31341. (RR or REJ). Upon receipt of the DTE response, Timer\ T1 is stopped. 
  31342. .ce
  31343. .parag
  31344. .ce
  31345.  
  31346. .ce
  31347. 1)
  31348. .ce
  31349. If the response is the RR or REJ response, the busy
  31350. .ce
  31351. condition is cleared and the DCE may transmit I\ frames beginning
  31352. .ce
  31353. with the I\ frame identified by the N(R) in the received response
  31354. .ce
  31355. frame.
  31356. .ce
  31357. .parag
  31358. .ce
  31359. 2)
  31360. .ce
  31361. If the response is the RNR response, the busy condition
  31362. .ce
  31363. still exists, and the DCE will after a period of time (e.g.\ the
  31364. .ce
  31365. length of Timer\ T1) repeat the enquiry of the DTE receive
  31366. .ce
  31367. status.
  31368. .ce
  31369. .parag
  31370. .ce
  31371. If Timer T1 runs out before a status response is received, the
  31372. .ce
  31373. enquiry process above is repeated. If N2 attempts to get a status response 
  31374. fail (i.e.\ Timer\ T1 runs out N2\ times), the DCE will initiate a data 
  31375. link resetting procedure as described in \(sc\ 2.4.7.2\ below or will transmit 
  31376. a DM response to ask the DTE to initiate a data link set\(hyup procedure 
  31377. as described in \(sc\ 2.4.4.1 and enter the disconnected phase. The value 
  31378. of N2 is defined in \(sc\ 2.4.8.4\ below. 
  31379. .ce
  31380. .parag
  31381. .ce
  31382.  
  31383. .ce
  31384. If, at any time during the enquiry process, an unsolicited RR or REJ frame 
  31385. is received from the DTE, it will be considered to be an indication of 
  31386. .ce
  31387. clearance of the busy condition. Should the unsolicited RR or REJ frame be a
  31388. .ce
  31389. command frame with the P bit set to\ 1, the appropriate response frame 
  31390. with the F\ bit set to 1 must be transmitted before the DCE may resume 
  31391. transmission of 
  31392. .ce
  31393. I\ frames. If Timer\ T1 is running, the DCE will wait for the non\(hybusy 
  31394. response with the F bit set to\ 1 or will wait for Timer\ T1 to run out 
  31395. and then either 
  31396. .ce
  31397. may reinitiate the enquiry process in order to realize a successful P/F bit
  31398. .ce
  31399. exchange or may resume transmission of I frames beginning with the I\ frame
  31400. .ce
  31401. identified by the N(R) in the received RR or REJ frame.
  31402. .ce
  31403. .parag
  31404. .ce
  31405. 2.4.5.8
  31406. .ce
  31407. \fIDCE busy condition\fR 
  31408. .ce
  31409. .parag
  31410. .ce
  31411. When the DCE enters a busy condition, it will transmit an RNR frame at 
  31412. the earliest opportunity. The RNR frame will be a command frame with the 
  31413. P bit set to\ 1 if an acknowledged transfer of the busy condition indication 
  31414. is 
  31415. .ce
  31416. required; otherwise the RNR frame may be either a command or a response 
  31417. frame. While in the busy condition, the DCE will accept and process supervisory 
  31418. .ce
  31419. frames, will accept and process the contents of the N(R) fields of I\ frames,
  31420. .ce
  31421. and will return an RNR response with the F bit set to\ 1 if it receives a
  31422. .ce
  31423. supervisory command or I command frame with the P bit set to\ 1. To clear the
  31424. .ce
  31425. busy condition, the DCE will transmit either an REJ frame or an RR frame, with
  31426. .ce
  31427. N(R) set to the current receive state variable V(R), depending on whether or
  31428. .ce
  31429. not it discarded information fields of correctly received I\ frames. The REJ
  31430. .ce
  31431. frame or the RR frame will be a command frame with the P bit set to\ 1 if an
  31432. .ce
  31433. acknowledged transfer of the busy\(hyto\(hynon\(hybusy transition is required, 
  31434. otherwise the REJ frame or the RR frame may be either a command or a response 
  31435. frame. 
  31436. .ce
  31437. .parag
  31438. .ce
  31439.  
  31440. .ce
  31441. 2.4.5.9
  31442. .ce
  31443. \fIWaiting acknowledgement\fR 
  31444. .ce
  31445. .parag
  31446. .ce
  31447. The DCE maintains an internal transmission attempt variable which is set 
  31448. to\ 0 when the DCE sends a UA response, when the DCE receives a UA 
  31449. .ce
  31450. response or an RNR command or response, or when the DCE correctly receives 
  31451. an I\ frame or supervisory frame with the N(R) higher than the last received 
  31452. N(R) (actually acknowledging some outstanding I\ frames). 
  31453. .ce
  31454. .parag
  31455. .ce
  31456. If Timer T1 runs out waiting for the acknowledgement from the DTE for an 
  31457. I\ frame transmitted, the DCE will enter the timer recovery condition, 
  31458. add 
  31459. .ce
  31460. one to its transmission attempt variable and set an internal variable \fIx\fR 
  31461. .ce
  31462. to
  31463. .ce
  31464. the current value of its send state variable V(S). The DCE will then restart
  31465. .ce
  31466. Timer T1, set its send state variable V(S) to the last value of N(R) received 
  31467. from the DTE and retransmit the corresponding I\ frame with the P bit set 
  31468. to\ 1, or transmit an appropriate supervisory command frame (RR, RNR or 
  31469. REJ) with the P\ bit set to\ 1. 
  31470. .ce
  31471. .parag
  31472. .ce
  31473.  
  31474. .ce
  31475. The timer recovery condition is cleared when the DCE receives a valid supervisory 
  31476. frame with the F\ bit\ set to\ 1. 
  31477. .ce
  31478. .parag
  31479. .ce
  31480. If, while in the timer recovery condition, the DCE correctly receives a 
  31481. supervisory frame with the F bit set to\ 1 and with the N(R) within the 
  31482. range from its current send state variable V(S) to \fIx\fR 
  31483. .ce
  31484. included, it will clear the
  31485. .ce
  31486. timer recovery condition (including stopping Timer\ T1) and set its send 
  31487. state variable V(S) to the value of the received N(R), and may then resume 
  31488. with 
  31489. .ce
  31490. I\ frame transmission or retransmission, as appropriate.
  31491. .ce
  31492. .parag
  31493. .ce
  31494. If, while in the timer recovery condition, the DCE correctly receives an 
  31495. I or supervisory frame with the P/F bit set to\ 0 and with a valid N(R) 
  31496. (see \(sc\ 2.3.4.9), it will not clear the timer recovery condition. The 
  31497. value of the 
  31498. .ce
  31499. received N(R) may be used to update the send state variable V(S). However, 
  31500. the DCE may decide to keep the last transmitted I\ frame in store (even 
  31501. if it is 
  31502. .ce
  31503. acknowledged) in order to be able to retransmit it with the P bit set to\ 
  31504. 1 when Timer\ T1 runs out at a later time. 
  31505. .ce
  31506. .parag
  31507. .ce
  31508.  
  31509. .ce
  31510. If the received supervisory frame with the P/F bit set to\ 0 is an REJ 
  31511. frame with a valid N(R), the DCE may either immediately initiate 
  31512. .ce
  31513. (re)transmission from the value of the send state variable V(S), or it may
  31514. .ce
  31515. ignore the request for retransmission and wait until the supervisory frame 
  31516. with the F bit set to\ 1 is received before initiating (re)transmission 
  31517. of frames 
  31518. .ce
  31519. from the value identified in the N(R) field of the supervisory frame with 
  31520. the F\ bit set to\ 1. In the case of immediate retransmission, in order 
  31521. to prevent 
  31522. .ce
  31523. duplicate retransmissions following the clearance of the timer recovery
  31524. .ce
  31525. condition, the DCE shall inhibit retransmission of a specific I\ frame [same
  31526. .ce
  31527. N(R) in the same numbering cycle] if the DCE has retransmitted that I\ 
  31528. frame as the result of a received REJ frame with the P/F bit set to\ 0. 
  31529. .ce
  31530. .parag
  31531. .ce
  31532. If, while in the timer recovery condition, the DCE receives a REJ
  31533. .ce
  31534. command with the P bit set to\ 1, the DCE will respond immediately with an
  31535. .ce
  31536. appropriate supervisory response with the F bit set to\ 1. The DCE may 
  31537. then use the value of the N(R) in the REJ command to update the send state 
  31538. variable 
  31539. .ce
  31540. V(S), and may either immediately begin (re)transmission from the value N(R)
  31541. .ce
  31542. indicated in the REJ frame or ignore the request for retransmission and wait
  31543. .ce
  31544. until the supervisory frame with the F bit set to\ 1 is received before
  31545. .ce
  31546. initiating (re)transmission of I\ frames from the value identified in the 
  31547. N(R) field of the supervisory frame with the F\ bit set to\ 1. In the case 
  31548. of 
  31549. .ce
  31550. immediate retransmission, in order to prevent duplicate retransmissions
  31551. .ce
  31552. following the clearance of the timer recovery condition, the DCE shall 
  31553. inhibit retransmission of a specific I\ frame [same N(R) in the same numbering 
  31554. cycle] 
  31555. .ce
  31556. if the DCE has retransmitted that I\ frame as the result of the received REJ
  31557. .ce
  31558. command with the P\ bit set to\ 1.
  31559. .ce
  31560. .parag
  31561. .ce
  31562. If Timer T1 runs out in the timer recovery condition, and no I or
  31563. .ce
  31564. supervisory frame with the P/F bit set to 0 and with a valid N(R) has been
  31565. .ce
  31566. received, or no REJ command with the P bit set to\ 1 and with a valid N(R) 
  31567. has been received, the DCE will add one to its transmission attempt variable, 
  31568. .ce
  31569. restart Timer\ T1, and either retransmit the I frame sent with the P bit set
  31570. .ce
  31571. to\ 1 or transmit an appropriate supervisory command with the P bit set to\ 1.
  31572. .ce
  31573. .parag
  31574. .ce
  31575.  
  31576. .ce
  31577. If the transmission attempt variable is equal to N2, the DCE will
  31578. .ce
  31579. initiate a data link resetting procedure as described in \(sc\ 2.4.7.2 
  31580. below, or 
  31581. .ce
  31582. will transmit a DM response to ask the DTE to initiate a data link set\(hyup
  31583. .ce
  31584. procedure as described in \(sc\ 2.4.4.1 above and enter the disconnected 
  31585. phase. N2 is a system parameter (see \(sc\ 2.4.8.4 below). 
  31586. .ce
  31587. .parag
  31588. .ce
  31589. \fINote\fR 
  31590. .ce
  31591. \ \(em\ Although the DCE may implement the internal variable \fIx\fR 
  31592. .ce
  31593. ,
  31594. .ce
  31595. other mechanisms do exist that achieve the identical function.
  31596. .ce
  31597. .parag
  31598. .ce
  31599. 2.4.6
  31600. .ce
  31601. \fILAPB conditions for \fR 
  31602. .ce
  31603. \fIdata link resetting or data link\fR 
  31604. .ce
  31605.  
  31606. .ce
  31607. \fIre\(hyinitialization\fR 
  31608. .ce
  31609. \fI(data link set\(hyup)\fR 
  31610. .ce
  31611. .parag
  31612. .ce
  31613. 2.4.6.1
  31614. .ce
  31615. When the DCE receives, during the information transfer phase, a
  31616. .ce
  31617. frame which is not invalid (see \(sc\ 2.3.5.3) with one of the conditions 
  31618. listed in \(sc\ 2.3.4.9 above, the DCE will request the DTE to initiate 
  31619. a data link resetting procedure by transmitting an FRMR response to the 
  31620. DTE as described in 
  31621. .ce
  31622. \(sc\ 2.4.7.3.
  31623. .ce
  31624. .parag
  31625. .ce
  31626. 2.4.6.2
  31627. .ce
  31628. When the DCE receives, during the information transfer phase, an FRMR response 
  31629. from the DTE, the DCE will either initiate the data link 
  31630. .ce
  31631. resetting procedures itself as described in \(sc\ 2.4.7.2 or return a DM 
  31632. response to ask the DTE to initiate the data link set\(hyup (initialization) 
  31633. procedure as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  31634. the DCE will enter 
  31635. .ce
  31636. the disconnected phase as described in \(sc\ 2.4.4.4.2.
  31637. .ce
  31638. .parag
  31639. .ce
  31640. 2.4.6.3
  31641. .ce
  31642. When the DCE receives, during the information transfer phase, a UA response, 
  31643. or an unsolicited response with the F bit set to\ 1, the DCE may 
  31644. .ce
  31645. either initiate the data link resetting procedures itself as described in
  31646. .ce
  31647. \(sc\ 2.4.7.2, or return a DM response to ask the DTE to initiate the data link
  31648. .ce
  31649. set\(hyup (initialization) procedure as described in \(sc\ 2.4.4.1. After 
  31650. transmitting a DM response, the DCE will enter the disconnected phase as 
  31651. described in 
  31652. .ce
  31653. \(sc\ 2.4.4.4.2.
  31654. .ce
  31655. .parag
  31656. .ce
  31657. 2.4.6.4
  31658. .ce
  31659. When the DCE receives, during the information transfer phase, a DM response 
  31660. from the DTE, the DCE will either initiate the data link set\(hyup 
  31661. .ce
  31662. (initialization) procedures itself as described in \(sc\ 2.4.4.1, or return 
  31663. a DM 
  31664. .ce
  31665. response to ask the DTE to initiate the data link set\(hyup (initialization)
  31666. .ce
  31667. procedures as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  31668. the DCE will enter the disconnected phase as described in \(sc\ 2.4.4.4.2. 
  31669. .ce
  31670. .parag
  31671. .ce
  31672.  
  31673. .ce
  31674. 2.4.7
  31675. .ce
  31676. \fILAPB procedure for data link resetting\fR 
  31677. .ce
  31678. .parag
  31679. .ce
  31680. 2.4.7.1
  31681. .ce
  31682. The data link resetting procedure is used to initialize both
  31683. .ce
  31684. directions of information transfer according to the procedure described 
  31685. below. The data link resetting procedure only applies during the information 
  31686. transfer phase. 
  31687. .ce
  31688. .parag
  31689. .ce
  31690. 2.4.7.2
  31691. .ce
  31692. Either the DTE or the DCE may initiate the data link resetting
  31693. .ce
  31694. procedure. The data link resetting procedure indicates a clearance of a DCE
  31695. .ce
  31696. and/or DTE busy condition, if present.
  31697. .ce
  31698. .parag
  31699. .ce
  31700. The DTE shall initiate a data link resetting by transmitting an
  31701. .ce
  31702. SABM/SABME command to the DCE. If, upon correct receipt of the SABM/SABME
  31703. .ce
  31704. command, the DCE determines that it can continue in the information transfer
  31705. .ce
  31706. phase, it will return a UA response to the DTE, will reset its send and 
  31707. receive state variables V(S) and V(R) to zero, and will remain in the information 
  31708. .ce
  31709. transfer phase. If, upon correct receipt of the SABM/SABME command, the DCE
  31710. .ce
  31711. determines that it cannot remain in the information transfer phase, it will
  31712. .ce
  31713. return a DM response as a denial to the resetting request and will enter the
  31714. .ce
  31715. disconnected phase.
  31716. .ce
  31717. .parag
  31718. .ce
  31719. The DCE will initiate a data link resetting by transmitting an
  31720. .ce
  31721. SABM/SABME command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 
  31722. below). Upon reception of a UA response from the DTE, the DCE will reset 
  31723. its send and receive state variables V(S) and V(R) to zero, will stop its 
  31724. Timer\ T1, and will remain in the information transfer phase. Upon reception 
  31725. of a DM response from the DTE as a denial to the data link resetting request, 
  31726. the DCE will stop its Timer\ T1 and will enter the disconnected phase. 
  31727. .ce
  31728. .parag
  31729. .ce
  31730. The DCE, having sent an SABM/SABME command, will ignore and discard
  31731. .ce
  31732. any frames received from the DTE except an SABM/SABME or DISC command, 
  31733. or a UA or DM response. The receipt of an SABM/SABME or DISC command from 
  31734. the DTE will result in a collision situation that is resolved per \(sc\ 
  31735. 2.4.4.5 above. Frames 
  31736. .ce
  31737. other than the UA or DM response sent in response to a received SABM/SABME 
  31738. or DISC command will be sent only after the data link is reset and if no 
  31739. .ce
  31740. outstanding SABM/SABME command exists.
  31741. .ce
  31742. .parag
  31743. .ce
  31744.  
  31745. .ce
  31746. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  31747. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  31748. .ce
  31749. resend the SABM/SABME command and will restart Timer\ T1. After N2 attempts 
  31750. to reset the data link, the DCE will initiate appropriate higher layer 
  31751. recovery 
  31752. .ce
  31753. action and will enter the disconnected phase. The value of N2 is defined in
  31754. .ce
  31755. \(sc\ 2.4.8.4 below.
  31756. .ce
  31757. .parag
  31758. .ce
  31759. 2.4.7.3
  31760. .ce
  31761. The DCE may ask the DTE to reset the data link by transmitting an FRMR 
  31762. response (see \(sc\ 2.4.6.1 above). After transmitting an FRMR response, 
  31763. .ce
  31764. the DCE will enter the frame rejection condition.
  31765. .ce
  31766. .parag
  31767. .ce
  31768. The frame rejection condition is cleared when the DCE receives an SABM/SABME 
  31769. command, a DISC command, a FRMR response, or a DM response; or if 
  31770. .ce
  31771. the DCE transmits an SABM/SABME command, a DISC command, or a DM response.
  31772. .ce
  31773. Other commands received while in the frame rejection condition will cause 
  31774. the DCE to retransmit the FRMR response with the same information field 
  31775. as 
  31776. .ce
  31777. originally transmitted.
  31778. .ce
  31779. .parag
  31780. .ce
  31781. The DCE may start Timer\ T1 on transmission of the FRMR response. If
  31782. .ce
  31783. Timer\ T1 runs out before the frame rejection condition is cleared, the 
  31784. DCE may retransmit the FRMR response, and restart T1. After N2 attempts 
  31785. (time outs) to get the DTE to reset the data link, the DCE may reset the 
  31786. data link itself as described in \(sc\ 2.4.7.2 above. The value of N2 is 
  31787. defined in \(sc\ 2.4.8.4 below. 
  31788. .ce
  31789. .parag
  31790. .ce
  31791.  
  31792. .ce
  31793. In the frame rejection condition, I frames and supervisory frames will 
  31794. not be transmitted by the DCE. Also, received I frames and supervisory 
  31795. frames will be discarded by the DCE except for the observance of a P bit 
  31796. set to\ 1. 
  31797. .ce
  31798. When an additional FRMR response must be transmitted by the DCE as a result 
  31799. of the receipt of a P\ bit set to 1 while Timer\ T1 is running, Timer\ 
  31800. T1 will 
  31801. .ce
  31802. continue to run. Upon reception of an FRMR response (even during a frame
  31803. .ce
  31804. rejection condition), the DCE will initiate a resetting procedure by
  31805. .ce
  31806. transmitting an SABM/SABME command as described in \(sc\ 2.4.7.2 above, or will
  31807. .ce
  31808. transmit a DM response to ask the DTE to initiate the data link set\(hyup
  31809. .ce
  31810. procedure as described in \(sc\ 2.4.4.1 and enter the disconnected phase.
  31811. .ce
  31812. .parag
  31813. .ce
  31814. 2.4.8
  31815. .ce
  31816. \fIList of \fR 
  31817. .ce
  31818. \fILAPB system parameters\fR 
  31819. .ce
  31820. .parag
  31821. .ce
  31822. The DCE and DTE system parameters are as follows:
  31823. .ce
  31824. .parag
  31825. .ce
  31826.  
  31827. .ce
  31828. 2.4.8.1
  31829. .ce
  31830. \fITimer\fR 
  31831. .ce
  31832. \fIT1\fR 
  31833. .ce
  31834. .parag
  31835. .ce
  31836. The value of the DTE Timer T1 system parameter may be different
  31837. .ce
  31838. than the value of the DCE Timer T1 system parameter. These values shall 
  31839. be made known to both the DTE and the DCE, and agreed to for a period of 
  31840. time by both the DTE and the DCE. 
  31841. .ce
  31842. .parag
  31843. .ce
  31844. The period of Timer T1, at the end of which retransmission of a frame may 
  31845. be initiated (see \(sc\ 2.4.4 and \(sc\ 2.4.5 above for the DCE), shall 
  31846. take into account whether T1 is started at the beginning or the end of 
  31847. the transmission of a frame. 
  31848. .ce
  31849. .parag
  31850. .ce
  31851. The proper operation of the procedure requires that the transmitter's (DCE 
  31852. or DTE) Timer\ T1 be greater than the maximum time between transmission 
  31853. of a frame (SABM/SABME, DISC, I\ or supervisory command, or DM or FRMR 
  31854. response) 
  31855. .ce
  31856. and the reception of the corresponding frame returned as an answer to that
  31857. .ce
  31858. frame (UA, DM or acknowledging frame). Therefore, the receiver (DCE or DTE)
  31859. .ce
  31860. should not delay the response or acknowledging frame returned to one of the
  31861. .ce
  31862. above frames by more than a value\ T2, where T2 is a system parameter (see
  31863. .ce
  31864. \(sc\ 2.4.8.2).
  31865. .ce
  31866. .parag
  31867. .ce
  31868.  
  31869. .ce
  31870. The DCE will not delay the response or acknowledging frame returned to 
  31871. one of the above DTE frames by more than a period\ T2. 
  31872. .ce
  31873. .parag
  31874. .ce
  31875. 2.4.8.2
  31876. .ce
  31877. \fIParameter T2\fR 
  31878. .ce
  31879. .parag
  31880. .ce
  31881. The value of the DTE parameter T2 may be different than the value of the 
  31882. DCE parameter T2. These values shall be made known to both the DTE and 
  31883. the DCE, and agreed to for a period of time by both the DTE and the DCE. 
  31884. .ce
  31885. .parag
  31886. .ce
  31887.  
  31888. .ce
  31889. The period of parameter T2 shall indicate the amount of time
  31890. .ce
  31891. available at the DCE or DTE before the acknowledging frame must be initiated 
  31892. in order to ensure its receipt by the DTE or DCE, respectively, prior to 
  31893. Timer\ T1 running out at the DTE or DCE (parameter\ T2\ <\ Timer\ T1). 
  31894. .ce
  31895. .parag
  31896. .ce
  31897. \fINote\fR 
  31898. .ce
  31899. \ \(em\ The period of parameter T2 shall take into account the
  31900. .ce
  31901. following timing factors: the transmission time of the acknowledging frame, 
  31902. the propagation time over the access data link, the stated processing times 
  31903. at the DCE and the DTE, and the time to complete the transmission of the 
  31904. frame(s) in the DCE or DTE transmit queue that are neither displaceable 
  31905. or modifiable in an orderly manner. 
  31906. .ce
  31907. .parag
  31908. .ce
  31909.  
  31910. .ce
  31911. Given a value for Timer T1 for the DTE or DCE, the value of parameter T2 
  31912. at the DCE or DTE, respectively, must be no larger than T1 minus\ 2 times 
  31913. the propagation time over the access data link, minus the frame processing 
  31914. time at the DCE, minus the frame processing time at the DTE, and minus 
  31915. the transmission time of the acknowledging frame by the DCE or DTE, respectively. 
  31916. .ce
  31917. .parag
  31918. .ce
  31919.  
  31920. .ce
  31921. 2.4.8.3
  31922. .ce
  31923. \fITimer T3\fR 
  31924. .ce
  31925. .parag
  31926. .ce
  31927. The DCE shall support a Timer T3 system parameter, the value of
  31928. .ce
  31929. which shall be made known to the DTE.
  31930. .ce
  31931. .parag
  31932. .ce
  31933. The period of Timer T3, at the end of which an indication of an
  31934. .ce
  31935. observed excessively long idle channel state condition is passed to the 
  31936. Packet Layer, shall be sufficiently greater than the period of the DCE 
  31937. Timer T1 
  31938. .ce
  31939. (i.e.\ T3\ >\ T1) so that the expiration of T3 provides the desired level of
  31940. .ce
  31941. assurance that the data link channel is in a non\(hyactive, non\(hyoperational 
  31942. state, and is in need of data link set\(hyup before normal data link operation 
  31943. can 
  31944. .ce
  31945. resume.
  31946. .ce
  31947. .parag
  31948. .ce
  31949. 2.4.8.4
  31950. .ce
  31951. \fIMaximum number of attempts\fR 
  31952. .ce
  31953. \fIto complete a\fR 
  31954. .ce
  31955.  
  31956. .ce
  31957. \fItransmission N2\fR 
  31958. .ce
  31959. .parag
  31960. .ce
  31961.  
  31962. .ce
  31963. The value of the DTE N2 system parameter may be different than the value 
  31964. of the DCE N2 system parameter. These values shall be made known to both 
  31965. the DTE and the DCE, and agreed to for a period of time by both the DTE 
  31966. and the DCE. 
  31967. .ce
  31968. .parag
  31969. .ce
  31970. The value of N2 shall indicate the maximum number of attempts made by the 
  31971. DCE or DTE to complete the successful transmission of a frame to the DTE 
  31972. or DCE, respectively. 
  31973. .ce
  31974. .parag
  31975. .ce
  31976. 2.4.8.5
  31977. .ce
  31978. \fIMaximum number of bits in an I frame N1\fR 
  31979. .ce
  31980. .parag
  31981. .ce
  31982. The value of the DTE N1 system parameter may be different than the value 
  31983. of the DCE N1 system parameter. These values shall be made known to both 
  31984. the DTE and the DCE. 
  31985. .ce
  31986. .parag
  31987. .ce
  31988. The values of N1 shall indicate the maximum number of bits in an
  31989. .ce
  31990. I\ frame (excluding flags and 0\ bits inserted for transparency) that the 
  31991. DCE or DTE is willing to accept from the DTE or DCE, respectively. 
  31992. .ce
  31993. .parag
  31994. .ce
  31995. In order to allow for universal operation, a DTE should support a
  31996. .ce
  31997. value of DTE N1 which is not less than 1080\ bits (135\ octets). DTEs should 
  31998. be aware that the network may transmit longer packets (see \(sc\ 5.2), 
  31999. that may result in a data link layer problem. 
  32000. .ce
  32001. .parag
  32002. .ce
  32003.  
  32004. .ce
  32005. All networks shall offer to a DTE which requires it, a value of DCE N1 
  32006. which is greater than or equal to 2072\ bits (259\ octets) plus the length 
  32007. of the address, control and FCS fields at the DTE/DCE interface, and greater 
  32008. than or equal to the maximum length of the data packets which may cross 
  32009. the DTE/DCE 
  32010. .ce
  32011. interface plus the length of the address, control and FCS fields at the 
  32012. DTE/DCE interface. 
  32013. .ce
  32014. .parag
  32015. .ce
  32016. Appendix II provides a description of how the values stated above are  derived.
  32017. .ce
  32018. .parag
  32019. .ce
  32020. 2.4.8.6
  32021. .ce
  32022. \fIMaximum number of \fR 
  32023. .ce
  32024. \fIoutstanding I frames k\fR 
  32025. .ce
  32026. .parag
  32027. .ce
  32028. The value of the DTE k system parameter shall be the same as the
  32029. .ce
  32030. value of the DCE k system parameter. This value shall be agreed to for a
  32031. .ce
  32032. period of time by both the DTE and the DCE.
  32033. .ce
  32034. .parag
  32035. .ce
  32036. The value of k shall indicate the maximum number of sequentially
  32037. .ce
  32038. numbered I\ frames that the DTE or DCE may have outstanding
  32039. .ce
  32040. (i.e.\ unacknowledged) at any given time. The value of k shall never exceed
  32041. .ce
  32042. seven for modulo\ 8 operation, or one hundred and twenty\(hyseven for modulo\ 
  32043. 128 
  32044. .ce
  32045. operation. All networks (DCEs) shall support a value of seven. Other values 
  32046. of k (less than and greater than seven) may also be supported by networks 
  32047. .ce
  32048. (DCEs).
  32049. .ce
  32050. .parag
  32051. .ce
  32052. .line
  32053. .ce
  32054. \fBMONTAGE : \(sc 2.5 de cette Recommandation sur le reste de cette page\fR 
  32055. .ce
  32056. .parag
  32057. .ce
  32058.  
  32059. .ce
  32060. .line
  32061. .ad r
  32062. \fBTable 8/X.25 [T8.25], p.\fR 
  32063. .sp 1P
  32064. .RT
  32065. .ad b
  32066. .RT
  32067. .LP
  32068. .bp
  32069. .sp 1P
  32070. .LP
  32071. 2.3.5.2
  32072.     \fIN(S) sequence error condition\fR 
  32073. .sp 9p
  32074. .RT
  32075. .PP
  32076. The information field of all I frames received whose N(S) does not equal 
  32077. the receive state variable V(R) will be discarded. 
  32078. .PP
  32079. An N(S) sequence error exception condition occurs in the receiver when 
  32080. an I\ frame received contains an N(S) which is not equal to the receive 
  32081. state 
  32082. variable V(R) at the receiver. The receiver does not acknowledge (increment 
  32083. its receive state variable) the I\ frame causing the sequence error, or 
  32084. any I\ frame which may follow, until an I\ frame with the correct N(S) 
  32085. is received. 
  32086. .PP
  32087. A DCE or DTE which receives one or more valid I frames having sequence 
  32088. errors or subsequent supervisory frames (RR, RNR and REJ) shall accept 
  32089. the 
  32090. control information contained in the N(R) field and the P or F bit to perform 
  32091. data link control functions; e.g.\ to receive acknowledgement of previously 
  32092. transmitted I\ frames and to cause the DCE or DTE to respond (P bit set to 1).
  32093. .PP
  32094. The means specified in \(sc\(sc\ 2.3.5.2.1 and 2.3.5.2.2 shall be available 
  32095. for initiating the retransmission of lost or errored I\ frames following 
  32096. the 
  32097. occurrence of an N(S) sequence error condition.
  32098. .RT
  32099. .sp 1P
  32100. .LP
  32101. 2.3.5.2.1
  32102.     \fIREJ recovery\fR 
  32103. .sp 9p
  32104. .RT
  32105. .PP
  32106. The REJ frame is used by a receiving DCE or DTE to initiate a
  32107. recovery (retransmission) following the detection of an N(S) sequence error.
  32108. .PP
  32109. With respect to each direction of transmission on the data link, only one 
  32110. \*Qsent REJ\*U exception condition from a DCE or DTE, to a DTE or DCE, 
  32111. is 
  32112. established at a time. A \*Qsent REJ\*U exception condition is cleared when the
  32113. requested I\ frame is received.
  32114. .PP
  32115. A DCE or DTE receiving a REJ frame initiates sequential
  32116. (re\(hy)transmission of I\ frames starting with the I\ frame indicated 
  32117. by the N(R) contained in the REJ frame. The retransmitted frames may contain 
  32118. an N(R) and a P bit that are updated from, and therefore different from, 
  32119. the ones contained in the originally transmitted I\ frames. 
  32120. .RT
  32121. .sp 1P
  32122. .LP
  32123. 2.3.5.2.2
  32124.     \fITime\(hyout recovery\fR 
  32125. .sp 9p
  32126. .RT
  32127. .PP
  32128. If a DCE or DTE, due to a transmission error, does not receive (or receives 
  32129. and discards) a single I\ frame or the last I\ frame(s) in a sequence of 
  32130. I\ frames, it will not detect an N(S) sequence error condition and, therefore, 
  32131. will not transmit a REJ frame. The DTE or DCE which transmitted the 
  32132. unacknowledged I\ frame(s) shall, following the completion of a system 
  32133. specified time\(hyout period (see \(sc\(sc\ 2.4.5.1 and 2.4.5.9 below), 
  32134. take appropriate recovery action to determine at which I\ frame retransmission 
  32135. must begin. The 
  32136. retransmitted frame(s) may contain an N(R) and a P bit that is updated from,
  32137. and therefore different from, the ones contained in the originally transmitted 
  32138. frame(s). 
  32139. .RT
  32140. .sp 1P
  32141. .LP
  32142. 2.3.5.3
  32143.     \fIInvalid frame\fR \fI condition\fR 
  32144. .sp 9p
  32145. .RT
  32146. .PP
  32147. Any frame which is invalid will be discarded, and no action is
  32148. taken as the result of that frame. An invalid frame is defined as one
  32149. which:
  32150. .RT
  32151. .LP
  32152.     a)
  32153.     is not properly bounded by two flags;
  32154. .LP
  32155.     b)
  32156.     in basic (modulo 8) operation, contains fewer than 32 bits
  32157. between flags; in extended (modulo\ 128) operation, contains
  32158. fewer than 40\ bits between flags of frames that contain sequence
  32159. numbers or 32\ bits between flags of frames that do not contain
  32160. sequence numbers;
  32161. .LP
  32162.     c)
  32163.     contains a Frame Check Sequence (FCS) error; or
  32164. .LP
  32165.     d)
  32166.     contains an address other than A or B (for single link
  32167. operation) or other than C or D (for multilink operation).
  32168. .PP
  32169. For those networks that are octet aligned, a detection of
  32170. non\(hyoctet alignment may be made at the Data Link Layer by adding a frame
  32171. validity check that requires the number of bits between the opening flag and
  32172. the closing flag, excluding bits inserted for transparency, to be an integral 
  32173. number of octets in length, or the frame is considered invalid. 
  32174. .sp 1P
  32175. .LP
  32176. 2.3.5.4
  32177.     \fIFrame rejection\fR \fI condition\fR 
  32178. .sp 9p
  32179. .RT
  32180. .PP
  32181. A frame rejection condition is established upon the receipt of an error\(hyfree 
  32182. frame with one of the conditions listed in \(sc\ 2.3.4.9 above. 
  32183. .bp
  32184. .PP
  32185. At the DCE or DTE, this frame rejection exception condition is
  32186. reported by an FRMR response for appropriate DTE or DCE action, respectively. 
  32187. Once a DCE has established such an exception condition, no additional I\ 
  32188. frames are accepted until the condition is reset by the DTE, except for 
  32189. examination of the P bit. The FRMR response may be repeated at each opportunity, 
  32190. as specified in \(sc\ 2.4.7.3, until recovery is effected by the DTE, or 
  32191. until the DCE initiates its own recovery in case the DTE does not respond. 
  32192. .RT
  32193. .sp 1P
  32194. .LP
  32195. 2.3.5.5
  32196.     \fIExcessive idle channel state condition on incoming\fR 
  32197. \fIchannel\fR 
  32198. .sp 9p
  32199. .RT
  32200. .PP
  32201. Upon detection of an idle channel state condition (see \(sc\ 2.2.12.2 above) 
  32202. on the incoming channel, the DCE shall wait for a period\ T3 (see 
  32203. \(sc\ 2.4.8.3 below) without taking any specific action, waiting for detection 
  32204. of a return to the active channel state (i.e.,\ detection of at least one 
  32205. flag 
  32206. .PP
  32207. sequence). After the period\ T3, the DCE shall notify the higher layer 
  32208. (e.g.\ the Packet Layer or the MLP) of the excessive idle channel state 
  32209. condition, but 
  32210. shall not take any action that would preclude the DTE from establishing the
  32211. data link by normal data link set\(hyup procedures.
  32212. .PP
  32213. \fINote\fR \ \(em\ Other actions to be taken by the DCE at the Data Link 
  32214. Layer upon expiration of period\ T3 is a subject for further study. 
  32215. .RT
  32216. .sp 2P
  32217. .LP
  32218. 2.4
  32219.     \fIDescription of the \fR \fILAPB procedure\fR 
  32220. .sp 1P
  32221. .RT
  32222. .sp 1P
  32223. .LP
  32224. 2.4.1
  32225.     \fILAPB basic and extended modes of operation\fR 
  32226. .sp 9p
  32227. .RT
  32228. .PP
  32229. In accordance with the system choice made by the DTE at
  32230. subscription time, the DCE will either support modulo\ 8 (basic) operation or
  32231. will support modulo\ 128 (extended) operation. Changing from basic operation 
  32232. to extended operation, or vice versa, in the DCE requires resubscription 
  32233. by the 
  32234. DTE for the desired service, and is not supported dynamically.
  32235. .PP
  32236. Table 5/X.25 indicates the command and response control field formats used 
  32237. with the basic (modulo\ 8) service. The mode\(hysetting command employed 
  32238. to 
  32239. initialize (set up) or reset the basic mode is the SABM command. Table 
  32240. 6/X.25 indicates the command and response control field formats used with 
  32241. the extended (modulo\ 128) service. The mode\(hysetting command employed 
  32242. to initialize (set up) or reset the extended mode is the SABME command. 
  32243. .RT
  32244. .sp 1P
  32245. .LP
  32246. 2.4.2
  32247.     \fILAPB procedure for addressing\fR 
  32248. .sp 9p
  32249. .RT
  32250. .PP
  32251. The address field identifies a frame as either a command or a
  32252. response. A command frame contains the address of the DCE or DTE to which 
  32253. the command is being sent. A response frame contains the address of the 
  32254. DCE or DTE sending the frame. 
  32255. .PP
  32256. In order to allow differentiation between single link operation and
  32257. the optional multilink operation for diagnostic and/or maintenance reasons,
  32258. different address pair encodings are assigned to data links operating with
  32259. multilink procedure compared to data links operating with the single link
  32260. procedure.
  32261. .PP
  32262. Frames containing commands transferred from the DCE to the DTE will
  32263. contain the address\ A for the single link operation and address\ C for the
  32264. multilink operation.
  32265. .PP
  32266. Frames containing responses transferred from the DCE to the DTE will contain 
  32267. the address\ B for the single link operation and address\ D for the 
  32268. multilink operation.
  32269. .PP
  32270. Frames containing commands transferred from the DTE to the DCE shall contain 
  32271. the address\ B for the single link operation and address\ D for the 
  32272. multilink operation.
  32273. .PP
  32274. Frames containing responses transferred from the DTE to the DCE shall contain 
  32275. the address\ A for the single link operation and address\ C for the 
  32276. multilink operation.
  32277. .PP
  32278. These addresses are coded as follows:
  32279. .RT
  32280. .LP
  32281.     Address
  32282.     1\ 2\ 3\ 4\ 5\ 6\ 7\ 8
  32283. .LP
  32284.     Single link operation
  32285.     \ \ A
  32286.     1\ 1\ 0\ 0\ 0\ 0\ 0\ 0
  32287. .LP
  32288.     \ \ B
  32289.     1\ 0\ 0\ 0\ 0\ 0\ 0\ 0
  32290. .LP
  32291.     Multilink operation
  32292.     \ \ C
  32293.     1\ 1\ 1\ 1\ 0\ 0\ 0\ 0
  32294. .LP
  32295.     \ \ D
  32296.     1\ 1\ 1\ 0\ 0\ 0\ 0\ 0
  32297. .PP
  32298. \fINote\fR \ \(em\ The DCE will discard all frames received with an address 
  32299. other than\ A or\ B (single link operation), or\ C or\ D (multilink operation). 
  32300. .bp
  32301. .sp 1P
  32302. .LP
  32303. 2.4.3
  32304.     \fILAPB procedure for the use of the P/F bit\fR 
  32305. .sp 9p
  32306. .RT
  32307. .PP
  32308. The DCE or DTE receiving an SABM/SABME, DISC, supervisory command or I\ 
  32309. frame with the P\ bit set to\ 1 will set the F\ bit to\ 1 in the next response 
  32310. frame it transmits. 
  32311. .PP
  32312. The response frame returned by the DCE to an SABM/SABME or DISC
  32313. command with the P\ bit set to\ 1 will be a UA or DM response with the 
  32314. F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  32315. with the P\ bit set to\ 1, received during the information transfer phase, 
  32316. will be an RR, REJ, RNR or FRMR response with the F\ bit set to\ 1. The 
  32317. response frame returned by the 
  32318. DCE to a supervisory command with the P\ bit set to\ 1, received during the
  32319. information transfer phase, will be an RR, REJ, RNR or FRMR response with 
  32320. the F\ bit set to\ 1. The response frame returned by the DCE to an I\ frame 
  32321. or 
  32322. supervisory frame with the P\ bit set to\ 1, received during the disconnected
  32323. phase, will be a DM response with the F\ bit set to\ 1.
  32324. .PP
  32325. The P bit may be used by the DCE in conjunction with the timer
  32326. recovery condition (see \(sc\ 2.4.5.9 below).
  32327. .PP
  32328. \fINote\fR \ \(em\ Other use of the P bit by the DCE is a subject for further
  32329. study.
  32330. .RT
  32331. .sp 2P
  32332. .LP
  32333. 2.4.4
  32334.     \fILAPB procedure for data link set\(hyup and disconnection\fR 
  32335. .sp 1P
  32336. .RT
  32337. .sp 1P
  32338. .LP
  32339. 2.4.4.1
  32340.     \fIData link set\(hyup\fR 
  32341. .sp 9p
  32342. .RT
  32343. .PP
  32344. The DCE will indicate that it is able to set up the data link by
  32345. transmitting contiguous flags (active channel state).
  32346. .PP
  32347. Either the DTE or the DCE may initiate data link set\(hyup. Prior to
  32348. initiation of data link set\(hyup, either the DCE or the DTE may initiate data
  32349. link
  32350. disconnection (see \(sc\ 2.4.4.3) for the purpose of insuring that the 
  32351. DCE and the DTE are in the same phase. The DCE may also transmit an unsolicited 
  32352. DM response to request the DTE to initiate data link set\(hyup. 
  32353. .PP
  32354. The DTE shall initiate data link set\(hyup by transmitting an SABM/SABME 
  32355. command to the DCE. If, upon receipt of the SABM/SABME command correctly, 
  32356. the DCE determines that it can enter the information transfer phase, it 
  32357. will return a UA response to the DTE, will reset its send and receive state 
  32358. variables V(S) and V(R) to zero, and will consider that the data link is 
  32359. set up. If, upon 
  32360. receipt
  32361. of the SABM/SABME command correctly, the DCE determines that it cannot enter
  32362. the information transfer phase, it will return a DM response to the DTE as a
  32363. .PP
  32364. denial to the data link set\(hyup initialization and will consider that the
  32365. data link is
  32366. \fInot\fR set up. In order to avoid misinterpretation of the DM response 
  32367. received, it is suggested that the DTE always sends its SABM/SABME command 
  32368. with the P\ bit set to\ 1. Otherwise, it is not possible to differentiate 
  32369. a DM response intended as a denial to data link set\(hyup from a DM response 
  32370. that is issued in a separate unsolicited sense as a request for a mode\(hysetting 
  32371. command (as described 
  32372. in\ \(sc\ 2.4.4.4.2).
  32373. .PP
  32374. The DCE will initiate data link set\(hyup by transmitting an SABM/SABME 
  32375. command to the DTE and starting its Timer\ T1 in order to determine when 
  32376. too 
  32377. much time has elapsed waiting for a reply (see \(sc\ 2.4.8.1 below). Upon 
  32378. reception of a UA response from the DTE, the DCE will reset its send and 
  32379. receive state 
  32380. variables\ V(S) and\ V(R) to zero, will stop its Timer\ T1, and will consider 
  32381. that the data link is set up. Upon reception of a DM response from the 
  32382. DTE as a 
  32383. denial
  32384. to the data link set\(hyup initialization, the DCE will stop its Timer\ 
  32385. T1 and will consider that the data link is \fInot\fR set up. 
  32386. .PP
  32387. The DCE, having sent the SABM/SABME command, will ignore and discard any 
  32388. frames except an SABM/SABME or DISC command, or a UA or DM response 
  32389. received from the DTE. The receipt of an SABM/SABME or DISC command from the
  32390. DTE will result in a collision situation that is resolved per \(sc\ 2.4.4.5 
  32391. below. Frames other than the UA and DM responses sent in response to a 
  32392. received 
  32393. SABM/SABME or DISC command will be sent only after the data link is set 
  32394. up and if no outstanding SABM/SABME command exists. 
  32395. .PP
  32396. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  32397. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  32398. resend the SABM/SABME command and will restart Timer\ T1. After transmission 
  32399. of the SABM/SABME command N2 times by the DCE, appropriate higher layer 
  32400. recovery action will be initiated. The value of N2 is defined in \(sc\ 
  32401. 2.4.8.4 below. 
  32402. .RT
  32403. .sp 1P
  32404. .LP
  32405. 2.4.4.2
  32406.     \fIInformation transfer phase\fR 
  32407. .sp 9p
  32408. .RT
  32409. .PP
  32410. After having transmitted the UA response to the SABM/SABME command or having 
  32411. received the UA response to a transmitted SABM/SABME command, the DCE will 
  32412. accept and transmit I and supervisory frames according to the procedures 
  32413. described in \(sc\ 2.4.5 below. 
  32414. .PP
  32415. When receiving the SABM/SABME command while in the information
  32416. transfer phase, the DCE will conform to the data link resetting procedure
  32417. described in \(sc\ 2.4.7 below.
  32418. .bp
  32419. .RT
  32420. .sp 1P
  32421. .LP
  32422. 2.4.4.3
  32423.     \fIData link disconnection\fR 
  32424. .sp 9p
  32425. .RT
  32426. .PP
  32427. The DTE shall initiate a disconnect of the data link by
  32428. transmitting a DISC command to the DCE. On correctly receiving a DISC command 
  32429. in the information transfer phase, the DCE will send a UA response and 
  32430. enter 
  32431. the disconnected phase. On correctly receiving a DISC command in the
  32432. disconnected phase, the DCE will send a DM response and remain in the
  32433. disconnected phase. In order to avoid misinterpretation of the DM response
  32434. received, it is suggested that the DTE always sends its DISC command with 
  32435. the P\ bit set to\ 1. Otherwise, it is not possible to differentiate a 
  32436. DM response 
  32437. intended as an indication that the DCE is already in the disconnected phase
  32438. from a DM response that is issued in a separate unsolicited sense as a 
  32439. request for a mode\(hysetting command (as described in \(sc\ 2.4.4.4.2). 
  32440. .PP
  32441. The DCE will initiate a disconnect of the data link by transmitting a DISC 
  32442. command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 below). 
  32443. Upon reception of an UA response from the DTE, the DCE will stop its Timer\ 
  32444. T1 and 
  32445. will enter the disconnected phase. Upon reception of a DM response from 
  32446. the DTE as an indication that the DTE was already in the disconnected phase, 
  32447. the DCE 
  32448. will stop its Timer\ T1 and will enter the disconnected phase.
  32449. .PP
  32450. The DCE, having sent the DISC command, will ignore and discard any
  32451. frames except an SABM/SABME or DISC command, or a UA or DM response received
  32452. from the DTE. The receipt of an SABM/SABME or DISC command from the DTE will
  32453. result in a collision situation that is resolved per \(sc\ 2.4.4.5 below.
  32454. .PP
  32455. After the DCE sends the DISC command, if a UA or DM response is not
  32456. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  32457. resend the DISC command and will restart Timer\ T1. After transmission 
  32458. of the DISC 
  32459. command N2 times by the DCE, appropriate higher layer recovery action will 
  32460. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  32461. .RT
  32462. .sp 1P
  32463. .LP
  32464. 2.4.4.4
  32465.     \fIDisconnected phase\fR \v'3p'
  32466. .sp 9p
  32467. .RT
  32468. .PP
  32469. 2.4.4.4.1
  32470. After having received a DISC command from the DTE and
  32471. returned a UA response to the DTE, or having received the UA response to a
  32472. transmitted DISC command, the DCE will enter the disconnected phase.
  32473. .PP
  32474. In the disconnected phase, the DCE may initiate data link set\(hyup. In 
  32475. the disconnected phase, the DCE will react to the receipt of an SABM/SABME 
  32476. command as described in \(sc\ 2.4.4.1 above and will transmit a DM response 
  32477. in 
  32478. answer to a received DISC command. When receiving any other command (defined, 
  32479. or undefined or not implemented) with the P\ bit set to\ 1, the DCE will 
  32480. transmit a DM response with the F\ bit set to\ 1. Other frames received 
  32481. in the 
  32482. disconnected phase will be ignored by the DCE.
  32483. .PP
  32484. 2.4.4.4.2
  32485. When the DCE enters the disconnected phase after
  32486. detecting error conditions as listed in \(sc\ 2.4.6 below, or after an internal
  32487. malfunction, it may indicate this by sending a DM response rather than 
  32488. a DISC command. In these cases, the DCE will transmit a DM response and 
  32489. start its 
  32490. Timer\ T1 (see \(sc\ 2.4.8.1 below).
  32491. .sp 9p
  32492. .RT
  32493. .PP
  32494. If Timer T1 runs out before the reception of an SABM/SABME or DISC command 
  32495. from the DTE, the DCE will retransmit the DM response and restart 
  32496. Timer\ T1. After transmission of the DM response N2 times, the DCE will 
  32497. remain in the disconnected phase and appropriate recovery actions will 
  32498. be initiated. The value of N2 is defined in \(sc\ 2.4.8.4 below. 
  32499. .PP
  32500. Alternatively, after an internal malfunction, the DCE may either
  32501. initiate a data link resetting procedure (see \(sc\ 2.4.7 below) or disconnect 
  32502. the data link (see \(sc\ 2.4.4.3 above) prior to initiating a data link 
  32503. set\(hyup 
  32504. procedure (see \(sc\ 2.4.4.1 above).
  32505. .RT
  32506. .sp 1P
  32507. .LP
  32508. 2.4.4.5
  32509.     \fICollision of unnumbered commands\fR 
  32510. .sp 9p
  32511. .RT
  32512. .PP
  32513. Collision situations shall be resolved in the following way:
  32514. .RT
  32515. .PP
  32516. 2.4.4.5.1
  32517. If the sent and received unnumbered commands are the
  32518. same, the DCE and the DTE shall each send the UA response at the earliest
  32519. possible opportunity. The DCE shall enter the indicated phase either,
  32520. .sp 9p
  32521. .RT
  32522. .LP
  32523.     1)
  32524.     after receiving the UA response,
  32525. .LP
  32526.     2)
  32527.     after sending the UA response, or
  32528. .LP
  32529.     3)
  32530.     after timing out waiting for the UA response having sent a
  32531. UA response.
  32532. .LP
  32533. In the case of 2) above, the DCE will accept a subsequent UA
  32534. response to the mode\(hysetting command it issued without causing an exception
  32535. condition if received within the time\(hyout interval.
  32536. .bp
  32537. .PP
  32538. 2.4.4.5.2
  32539. If the sent and received unnumbered commands are
  32540. different, the DCE and the DTE shall each enter the disconnected phase and
  32541. issue a DM response at the earliest possible opportunity.
  32542. .sp 9p
  32543. .RT
  32544. .sp 1P
  32545. .LP
  32546. 2.4.4.6
  32547.     \fICollision of DM response with SABM/SABME or DISC\fR 
  32548. \fIcommand\fR 
  32549. .sp 9p
  32550. .RT
  32551. .PP
  32552. When a DM response is issued by the DCE or DTE as an unsolicited
  32553. response to request the DTE or DCE, respectively, to issue a mode\(hysetting
  32554. command as described in \(sc\ 2.4.4.4, a collision between an SABM/SABME 
  32555. or DISC 
  32556. command and the unsolicited DM response may occur. In order to avoid
  32557. misinterpretation of the DM response received, the DTE always sends its
  32558. SABM/SABME or DISC command with the P\ bit set to\ 1.
  32559. .RT
  32560. .sp 1P
  32561. .LP
  32562. 2.4.4.7
  32563.     \fICollision of DM responses\fR 
  32564. .sp 9p
  32565. .RT
  32566. .PP
  32567. A contention situation may occur when both the DCE and the DTE
  32568. issue a DM response to request a mode\(hysetting command. In this case, the DTE
  32569. will issue an SABM/SABME command to resolve the contention situation.
  32570. .RT
  32571. .sp 1P
  32572. .LP
  32573. 2.4.5
  32574.     \fILAPB procedures for information transfer\fR 
  32575. .sp 9p
  32576. .RT
  32577. .PP
  32578. The procedures which apply to the transmission of I\ frames in each direction 
  32579. during the information transfer phase are described below. 
  32580. .PP
  32581. In the following, \*Qnumber one higher\*U is in reference to a
  32582. continuously repeated sequence series, i.e., 7 is 1\ higher than 6 and 0 is
  32583. 1\ higher than 7 for modulo\ 8 series, and 127 is 1\ higher than 126 and 0 is
  32584. 1\ higher than 127 for modulo\ 128 series.
  32585. .RT
  32586. .sp 1P
  32587. .LP
  32588. 2.4.5.1
  32589.     \fISending I frames\fR 
  32590. .sp 9p
  32591. .RT
  32592. .PP
  32593. When the DCE has an I frame to transmit (i.e. an I frame not
  32594. already transmitted, or having to be retransmitted as described in \(sc\ 
  32595. 2.4.5.6 
  32596. below), it will transmit it with an N(S) equal to its current send state
  32597. variable V(S), and an N(R) equal to its current receive state variable 
  32598. V(R). At the end of the transmission of the I\ frame, the DCE will increment 
  32599. its send 
  32600. state variable V(S) by\ 1.
  32601. .PP
  32602. If Timer T1 is not running at the time of transmission of an I frame, it 
  32603. will be started. 
  32604. .PP
  32605. If the send state variable V(S) is equal to the last value of N(R)
  32606. received plus \fIk\fR (where \fIk\fR is the maximum number of outstanding 
  32607. I\ frames \(em 
  32608. see \(sc\ 2.4.8.6 below), the DCE will not transmit any new I\ frames, but may
  32609. retransmit an I\ frame as described in \(sc\(sc\ 2.4.5.6 or 2.4.5.9 below.
  32610. .PP
  32611. When the DCE is in the busy condition, it may still transmit I frames, 
  32612. provided that the DTE is not busy. When the DCE is in the frame rejection 
  32613. condition, it will stop transmitting I\ frames.
  32614. .RT
  32615. .sp 1P
  32616. .LP
  32617. 2.4.5.2
  32618.     \fIReceiving an I frame\fR \v'3p'
  32619. .sp 9p
  32620. .RT
  32621. .PP
  32622. 2.4.5.2.1
  32623. When the DCE is not in a busy condition and receives a valid I\ frame whose 
  32624. send sequence number N(S) is equal to the DCE receive state 
  32625. variable V(R), the DCE will accept the information field of this frame,
  32626. increment by one its receive state variable V(R), and act as follows:
  32627. .LP
  32628.     a)
  32629.     If the DCE is still not in a busy condition:
  32630. .LP
  32631.     i)
  32632.     If an I frame is available for transmission by the
  32633. DCE, it may act as in \(sc\ 2.4.5.1 above and acknowledge
  32634. the received I frame by setting N(R) in the control field
  32635. of the next transmitted I\ frame to the value of the DCE
  32636. receive state variable V(R). Alternatively, the DCE may
  32637. acknowledge the received I\ frame by transmitting an RR
  32638. frame with the N(R) equal to the value of the DCE receive
  32639. state variable V(R).
  32640. .LP
  32641.     ii)
  32642.     If no I frame is available for transmission by the
  32643. DCE, it will transmit an RR frame with N(R) equal to the
  32644. value of the DCE receive state variable V(R).
  32645. .LP
  32646.     b)
  32647.     If the DCE is now in a busy condition, it will transmit an
  32648. RNR frame with N(R) equal to the value of the DCE receive
  32649. state variable V(R) (see \(sc\ 2.4.5.8).
  32650. .PP
  32651. 2.4.5.2.2
  32652. When the DCE is in a busy condition, it may ignore the
  32653. information field contained in any received I\ frame.
  32654. .sp 9p
  32655. .RT
  32656. .sp 1P
  32657. .LP
  32658. 2.4.5.3
  32659.     \fIReception of invalid frames\fR 
  32660. .sp 9p
  32661. .RT
  32662. .PP
  32663. When the DCE receives an invalid frame (see \(sc\ 2.3.5.3), this frame 
  32664. will be discarded. 
  32665. .bp
  32666. .RT
  32667. .sp 1P
  32668. .LP
  32669. 2.4.5.4
  32670.     \fIReception of out\(hyof\(hysequence I frames\fR 
  32671. .sp 9p
  32672. .RT
  32673. .PP
  32674. When the DCE receives a valid I frame whose send sequence number
  32675. N(S) is incorrect, i.e.,\ not equal to the current DCE receive state variable
  32676. V(R), it will discard the information field of the I\ frame and transmit 
  32677. an REJ frame with the N(R) set to one higher than the N(S) of the last 
  32678. correctly 
  32679. received I\ frame. The REJ frame will be a command frame with the P\ bit 
  32680. set to\ 1 if an acknowledged transfer of the retransmission request is 
  32681. required; 
  32682. otherwise the REJ frame may be either a command or a response frame. The DCE
  32683. .PP
  32684. will then discard the information field of all I\ frames received until the
  32685. expected I\ frame is correctly received. When receiving the expected I\ frame,
  32686. the DCE will then acknowledge the I\ frame as described in \(sc\ 2.4.5.2 
  32687. above. The DCE will use the N(R) and P\ bit information in the discarded 
  32688. I\ frames as 
  32689. described in \(sc\ 2.3.5.2 above.
  32690. .RT
  32691. .sp 1P
  32692. .LP
  32693. 2.4.5.5
  32694.     \fIReceiving acknowledgement\fR 
  32695. .sp 9p
  32696. .RT
  32697. .PP
  32698. When correctly receiving an I frame or a supervisory frame (RR, RNR or 
  32699. REJ), even in the busy condition, the DCE will consider the N(R) contained 
  32700. in this frame as an acknowledgement for all I\ frames it has transmitted 
  32701. with an N(S) up to and including the received N(R)\(em1. The DCE will stop 
  32702. Timer\ T1 when it correctly receives an I\ frame or a supervisory frame 
  32703. with the N(R) higher 
  32704. than the last received N(R) (actually acknowledging some I\ frames), or 
  32705. an REJ frame with an N(R) equal to the last received N(R). 
  32706. .PP
  32707. If Timer T1 has been stopped by the receipt on an I, RR or RNR frame, and 
  32708. if there are outstanding I\ frames still unacknowledged, the DCE will 
  32709. restart Timer\ T1. If Timer\ T1 then runs out, the DCE will follow the 
  32710. recovery procedure (\(sc\ 2.4.5.9 below) with respect to the unacknowledged 
  32711. I\ frames. If 
  32712. Timer\ T1 has been stopped by the receipt of an REJ frame, the DCE will 
  32713. follow the retransmission procedures in \(sc\ 2.4.5.6 below. 
  32714. .RT
  32715. .sp 1P
  32716. .LP
  32717. 2.4.5.6
  32718.     \fIReceiving an REJ frame\fR 
  32719. .sp 9p
  32720. .RT
  32721. .PP
  32722. When receiving an REJ frame, the DCE will set its send state
  32723. variable V(S) to the N(R) received in the REJ control field. It will transmit 
  32724. the corresponding I\ frame as soon as it is available or retransmit it 
  32725. in 
  32726. accordance with the procedures described in \(sc\ 2.4.5.1 above. (Re)transmission 
  32727. will conform to the following procedure: 
  32728. .RT
  32729. .LP
  32730.     i)
  32731.     if the DCE is transmitting a supervisory command or response
  32732. when it receives the REJ frame, it will complete that
  32733. transmission before commencing transmission of the requested
  32734. I\ frame;
  32735. .LP
  32736.     ii)
  32737.     if the DCE is transmitting an unnumbered command or
  32738. response when it receives the REJ frame, it will ignore the
  32739. request for retransmission;
  32740. .LP
  32741.     iii)
  32742.     if the DCE is transmitting an I frame when the REJ frame
  32743. is received, it may abort the I\ frame and commence transmission
  32744. of the requested I\ frame immediately after abortion;
  32745. .LP
  32746.     iv)
  32747.     if the DCE is not transmitting any frame when the REJ frame
  32748. is received, it will commence transmission of the requested
  32749. I\ frame immediately.
  32750. .PP
  32751. In all cases, if other unacknowledged I frames had already been
  32752. transmitted following the one indicated in the REJ frame, then those I 
  32753. frames will be retransmitted by the DCE following the retransmission of 
  32754. the requested I\ frame. Other I\ frames not yet transmitted may be transmitted 
  32755. following the 
  32756. retransmitted I\ frames.
  32757. .PP
  32758. If the REJ frame was received from the DTE as a command with the P bit 
  32759. set to\ 1, the DCE will transmit an RR, RNR or REJ response with the F 
  32760. bit set to\ 1 before transmitting or retransmitting the corresponding I\ 
  32761. frame. 
  32762. .RT
  32763. .sp 1P
  32764. .LP
  32765. 2.4.5.7
  32766.     \fIReceiving an RNR frame\fR 
  32767. .sp 9p
  32768. .RT
  32769. .PP
  32770. After receiving an RNR frame whose N(R) acknowledges all frames
  32771. previously transmitted, the DCE will stop Timer\ T1 and may then transmit
  32772. an I\ frame, with the P\ bit set to\ 0, whose send sequence number is
  32773. equal to the N(R) indicated in the RNR frame, restarting Timer\ T1 as it 
  32774. does. After receiving an RNR frame whose N(R) indicates a previously transmitted 
  32775. frame, the DCE will not transmit or retransmit any I\ frame, Timer\ T1 being
  32776. already running. In either case, if the Timer\ T1 runs out before receipt 
  32777. of a busy clearance indication, the DCE will follow the procedure described 
  32778. in 
  32779. \(sc\ 2.4.5.9\ below. In any case, the DCE will not transmit any other 
  32780. I\ frames 
  32781. before receiving an RR or REJ frame, or before the completion of a link
  32782. resetting procedure.
  32783. .bp
  32784. .PP
  32785. Alternatively, after receiving an RNR frame, the DCE may wait for a
  32786. period of time (e.g.,\ the length of the Timer\ T1) and then transmit a
  32787. supervisory command frame (RR, RNR or REJ) with the P\ bit set to\ 1, and 
  32788. start Timer\ T1, in order to determine if there is any change in the receive 
  32789. status of the DTE. The DTE shall respond to the P\ bit set to\ 1 with a 
  32790. supervisory 
  32791. response frame (RR, RNR or REJ) with the F\ bit set to\ 1 indicating either
  32792. continuance of the busy condition (RNR) or clearance of the busy condition 
  32793. (RR or REJ). Upon receipt of the DTE response, Timer\ T1 is stopped. 
  32794. .RT
  32795. .LP
  32796.     1)
  32797.     If the response is the RR or REJ response, the busy
  32798. condition is cleared and the DCE may transmit I\ frames beginning
  32799. with the I\ frame identified by the N(R) in the received response
  32800. frame.
  32801. .LP
  32802.     2)
  32803.     If the response is the RNR response, the busy condition
  32804. still exists, and the DCE will after a period of time (e.g.\ the
  32805. length of Timer\ T1) repeat the enquiry of the DTE receive
  32806. status.
  32807. .PP
  32808. If Timer T1 runs out before a status response is received, the
  32809. enquiry process above is repeated. If N2 attempts to get a status response 
  32810. fail (i.e.\ Timer\ T1 runs out N2\ times), the DCE will initiate a data 
  32811. link resetting procedure as described in \(sc\ 2.4.7.2\ below or will transmit 
  32812. a DM response to ask the DTE to initiate a data link set\(hyup procedure 
  32813. as described in \(sc\ 2.4.4.1 and enter the disconnected phase. The value 
  32814. of N2 is defined in \(sc\ 2.4.8.4\ below. 
  32815. .PP
  32816. If, at any time during the enquiry process, an unsolicited RR or REJ frame 
  32817. is received from the DTE, it will be considered to be an indication of 
  32818. clearance of the busy condition. Should the unsolicited RR or REJ frame be a
  32819. command frame with the P bit set to\ 1, the appropriate response frame 
  32820. with the F\ bit set to 1 must be transmitted before the DCE may resume 
  32821. transmission of 
  32822. I\ frames. If Timer\ T1 is running, the DCE will wait for the non\(hybusy 
  32823. response with the F bit set to\ 1 or will wait for Timer\ T1 to run out 
  32824. and then either 
  32825. may reinitiate the enquiry process in order to realize a successful P/F bit
  32826. exchange or may resume transmission of I frames beginning with the I\ frame
  32827. identified by the N(R) in the received RR or REJ frame.
  32828. .RT
  32829. .sp 1P
  32830. .LP
  32831. 2.4.5.8
  32832.     \fIDCE busy condition\fR 
  32833. .sp 9p
  32834. .RT
  32835. .PP
  32836. When the DCE enters a busy condition, it will transmit an RNR frame at 
  32837. the earliest opportunity. The RNR frame will be a command frame with the 
  32838. P bit set to\ 1 if an acknowledged transfer of the busy condition indication 
  32839. is 
  32840. required; otherwise the RNR frame may be either a command or a response 
  32841. frame. While in the busy condition, the DCE will accept and process supervisory 
  32842. frames, will accept and process the contents of the N(R) fields of I\ frames,
  32843. and will return an RNR response with the F bit set to\ 1 if it receives a
  32844. supervisory command or I command frame with the P bit set to\ 1. To clear the
  32845. busy condition, the DCE will transmit either an REJ frame or an RR frame, with
  32846. .PP
  32847. N(R) set to the current receive state variable V(R), depending on whether or
  32848. not it discarded information fields of correctly received I\ frames. The REJ
  32849. frame or the RR frame will be a command frame with the P bit set to\ 1 if an
  32850. acknowledged transfer of the busy\(hyto\(hynon\(hybusy transition is required, 
  32851. otherwise the REJ frame or the RR frame may be either a command or a response 
  32852. frame. 
  32853. .RT
  32854. .sp 1P
  32855. .LP
  32856. 2.4.5.9
  32857.     \fIWaiting acknowledgement\fR 
  32858. .sp 9p
  32859. .RT
  32860. .PP
  32861. The DCE maintains an internal transmission attempt variable which is set 
  32862. to\ 0 when the DCE sends a UA response, when the DCE receives a UA 
  32863. response or an RNR command or response, or when the DCE correctly receives 
  32864. an I\ frame or supervisory frame with the N(R) higher than the last received 
  32865. N(R) (actually acknowledging some outstanding I\ frames). 
  32866. .PP
  32867. If Timer T1 runs out waiting for the acknowledgement from the DTE for an 
  32868. I\ frame transmitted, the DCE will enter the timer recovery condition, 
  32869. add 
  32870. one to its transmission attempt variable and set an internal variable \fIx\fR 
  32871. to 
  32872. the current value of its send state variable V(S). The DCE will then restart
  32873. Timer T1, set its send state variable V(S) to the last value of N(R) received 
  32874. from the DTE and retransmit the corresponding I\ frame with the P bit set 
  32875. to\ 1, or transmit an appropriate supervisory command frame (RR, RNR or 
  32876. REJ) with the P\ bit set to\ 1. 
  32877. .PP
  32878. The timer recovery condition is cleared when the DCE receives a valid supervisory 
  32879. frame with the F\ bit\ set to\ 1. 
  32880. .PP
  32881. If, while in the timer recovery condition, the DCE correctly receives a 
  32882. supervisory frame with the F bit set to\ 1 and with the N(R) within the 
  32883. range from its current send state variable V(S) to \fIx\fR included, it 
  32884. will clear the 
  32885. timer recovery condition (including stopping Timer\ T1) and set its send 
  32886. state variable V(S) to the value of the received N(R), and may then resume 
  32887. with 
  32888. I\ frame transmission or retransmission, as appropriate.
  32889. .bp
  32890. .PP
  32891. If, while in the timer recovery condition, the DCE correctly receives an 
  32892. I or supervisory frame with the P/F bit set to\ 0 and with a valid N(R) 
  32893. (see \(sc\ 2.3.4.9), it will not clear the timer recovery condition. The 
  32894. value of the 
  32895. received N(R) may be used to update the send state variable V(S). However, 
  32896. the DCE may decide to keep the last transmitted I\ frame in store (even 
  32897. if it is 
  32898. acknowledged) in order to be able to retransmit it with the P bit set to\ 
  32899. 1 when Timer\ T1 runs out at a later time. 
  32900. .PP
  32901. If the received supervisory frame with the P/F bit set to\ 0 is an REJ 
  32902. frame with a valid N(R), the DCE may either immediately initiate 
  32903. (re)transmission from the value of the send state variable V(S), or it may
  32904. ignore the request for retransmission and wait until the supervisory frame 
  32905. with the F bit set to\ 1 is received before initiating (re)transmission 
  32906. of frames 
  32907. from the value identified in the N(R) field of the supervisory frame with 
  32908. the F\ bit set to\ 1. In the case of immediate retransmission, in order 
  32909. to prevent 
  32910. duplicate retransmissions following the clearance of the timer recovery
  32911. condition, the DCE shall inhibit retransmission of a specific I\ frame [same
  32912. N(R) in the same numbering cycle] if the DCE has retransmitted that I\ 
  32913. frame as the result of a received REJ frame with the P/F bit set to\ 0. 
  32914. .PP
  32915. If, while in the timer recovery condition, the DCE receives a REJ
  32916. command with the P bit set to\ 1, the DCE will respond immediately with an
  32917. appropriate supervisory response with the F bit set to\ 1. The DCE may 
  32918. then use the value of the N(R) in the REJ command to update the send state 
  32919. variable 
  32920. V(S), and may either immediately begin (re)transmission from the value N(R)
  32921. indicated in the REJ frame or ignore the request for retransmission and wait
  32922. until the supervisory frame with the F bit set to\ 1 is received before
  32923. initiating (re)transmission of I\ frames from the value identified in the 
  32924. N(R) field of the supervisory frame with the F\ bit set to\ 1. In the case 
  32925. of 
  32926. immediate retransmission, in order to prevent duplicate retransmissions
  32927. .PP
  32928. following the clearance of the timer recovery condition, the DCE shall 
  32929. inhibit retransmission of a specific I\ frame [same N(R) in the same numbering 
  32930. cycle] 
  32931. if the DCE has retransmitted that I\ frame as the result of the received REJ
  32932. command with the P\ bit set to\ 1.
  32933. .PP
  32934. If Timer T1 runs out in the timer recovery condition, and no I or
  32935. supervisory frame with the P/F bit set to 0 and with a valid N(R) has been
  32936. received, or no REJ command with the P bit set to\ 1 and with a valid N(R) 
  32937. has been received, the DCE will add one to its transmission attempt variable, 
  32938. restart Timer\ T1, and either retransmit the I frame sent with the P bit set
  32939. to\ 1 or transmit an appropriate supervisory command with the P bit set to\ 1.
  32940. .PP
  32941. If the transmission attempt variable is equal to N2, the DCE will
  32942. initiate a data link resetting procedure as described in \(sc\ 2.4.7.2 
  32943. below, or 
  32944. will transmit a DM response to ask the DTE to initiate a data link set\(hyup
  32945. procedure as described in \(sc\ 2.4.4.1 above and enter the disconnected 
  32946. phase. N2 is a system parameter (see \(sc\ 2.4.8.4 below). 
  32947. .PP
  32948. \fINote\fR \ \(em\ Although the DCE may implement the internal variable 
  32949. \fIx\fR , 
  32950. other mechanisms do exist that achieve the identical function.
  32951. .RT
  32952. .sp 1P
  32953. .LP
  32954. 2.4.6
  32955.     \fILAPB conditions for \fR \fIdata link resetting or data link\fR 
  32956. \fIre\(hyinitialization\fR \fI(data link set\(hyup)\fR \v'3p'
  32957. .sp 9p
  32958. .RT
  32959. .PP
  32960. 2.4.6.1
  32961. When the DCE receives, during the information transfer phase, a
  32962. frame which is not invalid (see \(sc\ 2.3.5.3) with one of the conditions 
  32963. listed in \(sc\ 2.3.4.9 above, the DCE will request the DTE to initiate 
  32964. a data link resetting procedure by transmitting an FRMR response to the 
  32965. DTE as described in 
  32966. \(sc\ 2.4.7.3.
  32967. .PP
  32968. 2.4.6.2
  32969. When the DCE receives, during the information transfer phase, an FRMR response 
  32970. from the DTE, the DCE will either initiate the data link 
  32971. resetting procedures itself as described in \(sc\ 2.4.7.2 or return a DM 
  32972. response to ask the DTE to initiate the data link set\(hyup (initialization) 
  32973. procedure as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  32974. the DCE will enter 
  32975. the disconnected phase as described in \(sc\ 2.4.4.4.2.
  32976. .PP
  32977. 2.4.6.3
  32978. When the DCE receives, during the information transfer phase, a UA response, 
  32979. or an unsolicited response with the F bit set to\ 1, the DCE may 
  32980. either initiate the data link resetting procedures itself as described in
  32981. \(sc\ 2.4.7.2, or return a DM response to ask the DTE to initiate the data link
  32982. set\(hyup (initialization) procedure as described in \(sc\ 2.4.4.1. After 
  32983. transmitting a DM response, the DCE will enter the disconnected phase as 
  32984. described in 
  32985. \(sc\ 2.4.4.4.2.
  32986. .PP
  32987. 2.4.6.4
  32988. When the DCE receives, during the information transfer phase, a DM response 
  32989. from the DTE, the DCE will either initiate the data link set\(hyup 
  32990. (initialization) procedures itself as described in \(sc\ 2.4.4.1, or return 
  32991. a DM 
  32992. response to ask the DTE to initiate the data link set\(hyup (initialization)
  32993. procedures as described in \(sc\ 2.4.4.1. After transmitting a DM response, 
  32994. the DCE will enter the disconnected phase as described in \(sc\ 2.4.4.4.2. 
  32995. .bp
  32996. .sp 1P
  32997. .LP
  32998. 2.4.7
  32999.     \fILAPB procedure for data link resetting\fR \v'3p'
  33000. .sp 9p
  33001. .RT
  33002. .PP
  33003. 2.4.7.1
  33004. The data link resetting procedure is used to initialize both
  33005. directions of information transfer according to the procedure described 
  33006. below. The data link resetting procedure only applies during the information 
  33007. transfer phase. 
  33008. .PP
  33009. 2.4.7.2
  33010. Either the DTE or the DCE may initiate the data link resetting
  33011. procedure. The data link resetting procedure indicates a clearance of a DCE
  33012. and/or DTE busy condition, if present.
  33013. .PP
  33014. The DTE shall initiate a data link resetting by transmitting an
  33015. SABM/SABME command to the DCE. If, upon correct receipt of the SABM/SABME
  33016. command, the DCE determines that it can continue in the information transfer
  33017. phase, it will return a UA response to the DTE, will reset its send and 
  33018. receive state variables V(S) and V(R) to zero, and will remain in the information 
  33019. .PP
  33020. transfer phase. If, upon correct receipt of the SABM/SABME command, the DCE
  33021. determines that it cannot remain in the information transfer phase, it will
  33022. return a DM response as a denial to the resetting request and will enter the
  33023. disconnected phase.
  33024. .PP
  33025. The DCE will initiate a data link resetting by transmitting an
  33026. SABM/SABME command to the DTE and starting its Timer\ T1 (see \(sc\ 2.4.8.1 
  33027. below). Upon reception of a UA response from the DTE, the DCE will reset 
  33028. its send and receive state variables V(S) and V(R) to zero, will stop its 
  33029. Timer\ T1, and will remain in the information transfer phase. Upon reception 
  33030. of a DM response from the DTE as a denial to the data link resetting request, 
  33031. the DCE will stop its Timer\ T1 and will enter the disconnected phase. 
  33032. .PP
  33033. The DCE, having sent an SABM/SABME command, will ignore and discard
  33034. any frames received from the DTE except an SABM/SABME or DISC command, 
  33035. or a UA or DM response. The receipt of an SABM/SABME or DISC command from 
  33036. the DTE will result in a collision situation that is resolved per \(sc\ 
  33037. 2.4.4.5 above. Frames 
  33038. other than the UA or DM response sent in response to a received SABM/SABME 
  33039. or DISC command will be sent only after the data link is reset and if no 
  33040. outstanding SABM/SABME command exists.
  33041. .PP
  33042. After the DCE sends the SABM/SABME command, if a UA or DM response is not 
  33043. received correctly, Timer\ T1 will run out in the DCE. The DCE will then 
  33044. resend the SABM/SABME command and will restart Timer\ T1. After N2 attempts 
  33045. to reset the data link, the DCE will initiate appropriate higher layer 
  33046. recovery 
  33047. action and will enter the disconnected phase. The value of N2 is defined in
  33048. \(sc\ 2.4.8.4 below.
  33049. .RT
  33050. .PP
  33051. 2.4.7.3
  33052. The DCE may ask the DTE to reset the data link by transmitting an FRMR 
  33053. response (see \(sc\ 2.4.6.1 above). After transmitting an FRMR response, 
  33054. the DCE will enter the frame rejection condition.
  33055. .sp 9p
  33056. .RT
  33057. .PP
  33058. The frame rejection condition is cleared when the DCE receives an SABM/SABME 
  33059. command, a DISC command, a FRMR response, or a DM response; or if 
  33060. the DCE transmits an SABM/SABME command, a DISC command, or a DM response.
  33061. Other commands received while in the frame rejection condition will cause 
  33062. the DCE to retransmit the FRMR response with the same information field 
  33063. as 
  33064. originally transmitted.
  33065. .PP
  33066. The DCE may start Timer\ T1 on transmission of the FRMR response. If
  33067. .PP
  33068. Timer\ T1 runs out before the frame rejection condition is cleared, the 
  33069. DCE may retransmit the FRMR response, and restart T1. After N2 attempts 
  33070. (time outs) to get the DTE to reset the data link, the DCE may reset the 
  33071. data link itself as described in \(sc\ 2.4.7.2 above. The value of N2 is 
  33072. defined in \(sc\ 2.4.8.4 below. 
  33073. .PP
  33074. In the frame rejection condition, I frames and supervisory frames will 
  33075. not be transmitted by the DCE. Also, received I frames and supervisory 
  33076. frames will be discarded by the DCE except for the observance of a P bit 
  33077. set to\ 1. 
  33078. When an additional FRMR response must be transmitted by the DCE as a result 
  33079. of the receipt of a P\ bit set to 1 while Timer\ T1 is running, Timer\ 
  33080. T1 will 
  33081. continue to run. Upon reception of an FRMR response (even during a frame
  33082. rejection condition), the DCE will initiate a resetting procedure by
  33083. transmitting an SABM/SABME command as described in \(sc\ 2.4.7.2 above, or will
  33084. transmit a DM response to ask the DTE to initiate the data link set\(hyup
  33085. procedure as described in \(sc\ 2.4.4.1 and enter the disconnected phase.
  33086. .RT
  33087. .sp 1P
  33088. .LP
  33089. 2.4.8
  33090.     \fIList of \fR \fILAPB system parameters\fR 
  33091. .sp 9p
  33092. .RT
  33093. .PP
  33094. The DCE and DTE system parameters are as follows:
  33095. .RT
  33096. .sp 1P
  33097. .LP
  33098. 2.4.8.1
  33099.     \fITimer\fR \fIT1\fR 
  33100. .sp 9p
  33101. .RT
  33102. .PP
  33103. The value of the DTE Timer T1 system parameter may be different
  33104. than the value of the DCE Timer T1 system parameter. These values shall 
  33105. be made known to both the DTE and the DCE, and agreed to for a period of 
  33106. time by both the DTE and the DCE. 
  33107. .bp
  33108. .PP
  33109. The period of Timer T1, at the end of which retransmission of a frame may 
  33110. be initiated (see \(sc\ 2.4.4 and \(sc\ 2.4.5 above for the DCE), shall 
  33111. take into account whether T1 is started at the beginning or the end of 
  33112. the transmission of a frame. 
  33113. .PP
  33114. The proper operation of the procedure requires that the transmitter's (DCE 
  33115. or DTE) Timer\ T1 be greater than the maximum time between transmission 
  33116. of a frame (SABM/SABME, DISC, I\ or supervisory command, or DM or FRMR 
  33117. response) 
  33118. and the reception of the corresponding frame returned as an answer to that
  33119. frame (UA, DM or acknowledging frame). Therefore, the receiver (DCE or DTE)
  33120. should not delay the response or acknowledging frame returned to one of the
  33121. above frames by more than a value\ T2, where T2 is a system parameter (see
  33122. \(sc\ 2.4.8.2).
  33123. .PP
  33124. The DCE will not delay the response or acknowledging frame returned to 
  33125. one of the above DTE frames by more than a period\ T2. 
  33126. .RT
  33127. .sp 1P
  33128. .LP
  33129. 2.4.8.2
  33130.     \fIParameter T2\fR 
  33131. .sp 9p
  33132. .RT
  33133. .PP
  33134. The value of the DTE parameter T2 may be different than the value of the 
  33135. DCE parameter T2. These values shall be made known to both the DTE and 
  33136. the DCE, and agreed to for a period of time by both the DTE and the DCE. 
  33137. .PP
  33138. The period of parameter T2 shall indicate the amount of time
  33139. available at the DCE or DTE before the acknowledging frame must be initiated 
  33140. in order to ensure its receipt by the DTE or DCE, respectively, prior to 
  33141. Timer\ T1 running out at the DTE or DCE (parameter\ T2\ <\ Timer\ T1). 
  33142. .PP
  33143. \fINote\fR \ \(em\ The period of parameter T2 shall take into account the
  33144. following timing factors: the transmission time of the acknowledging frame, 
  33145. the propagation time over the access data link, the stated processing times 
  33146. at the DCE and the DTE, and the time to complete the transmission of the 
  33147. frame(s) in the DCE or DTE transmit queue that are neither displaceable 
  33148. or modifiable in an orderly manner. 
  33149. .PP
  33150. Given a value for Timer T1 for the DTE or DCE, the value of parameter T2 
  33151. at the DCE or DTE, respectively, must be no larger than T1 minus\ 2 times 
  33152. the propagation time over the access data link, minus the frame processing 
  33153. time at the DCE, minus the frame processing time at the DTE, and minus 
  33154. the transmission time of the acknowledging frame by the DCE or DTE, respectively. 
  33155. .RT
  33156. .sp 1P
  33157. .LP
  33158. 2.4.8.3
  33159.     \fITimer T3\fR 
  33160. .sp 9p
  33161. .RT
  33162. .PP
  33163. The DCE shall support a Timer T3 system parameter, the value of
  33164. which shall be made known to the DTE.
  33165. .PP
  33166. The period of Timer T3, at the end of which an indication of an
  33167. observed excessively long idle channel state condition is passed to the 
  33168. Packet Layer, shall be sufficiently greater than the period of the DCE 
  33169. Timer T1 
  33170. (i.e.\ T3\ >\ T1) so that the expiration of T3 provides the desired level of
  33171. assurance that the data link channel is in a non\(hyactive, non\(hyoperational 
  33172. state, and is in need of data link set\(hyup before normal data link operation 
  33173. can 
  33174. resume.
  33175. .RT
  33176. .sp 1P
  33177. .LP
  33178. 2.4.8.4
  33179.     \fIMaximum number of attempts\fR \fIto complete a\fR 
  33180. \fItransmission N2\fR 
  33181. .sp 9p
  33182. .RT
  33183. .PP
  33184. The value of the DTE N2 system parameter may be different than the value 
  33185. of the DCE N2 system parameter. These values shall be made known to both 
  33186. the DTE and the DCE, and agreed to for a period of time by both the DTE 
  33187. and the DCE. 
  33188. .PP
  33189. The value of N2 shall indicate the maximum number of attempts made by the 
  33190. DCE or DTE to complete the successful transmission of a frame to the DTE 
  33191. or DCE, respectively. 
  33192. .RT
  33193. .sp 1P
  33194. .LP
  33195. 2.4.8.5
  33196.     \fIMaximum number of bits in an I frame N1\fR 
  33197. .sp 9p
  33198. .RT
  33199. .PP
  33200. The value of the DTE N1 system parameter may be different than the value 
  33201. of the DCE N1 system parameter. These values shall be made known to both 
  33202. the DTE and the DCE. 
  33203. .PP
  33204. The values of N1 shall indicate the maximum number of bits in an
  33205. I\ frame (excluding flags and 0\ bits inserted for transparency) that the 
  33206. DCE or DTE is willing to accept from the DTE or DCE, respectively. 
  33207. .PP
  33208. In order to allow for universal operation, a DTE should support a
  33209. value of DTE N1 which is not less than 1080\ bits (135\ octets). DTEs should 
  33210. be aware that the network may transmit longer packets (see \(sc\ 5.2), 
  33211. that may result in a data link layer problem. 
  33212. .bp
  33213. .PP
  33214. All networks shall offer to a DTE which requires it, a value of DCE N1 
  33215. which is greater than or equal to 2072\ bits (259\ octets) plus the length 
  33216. of the address, control and FCS fields at the DTE/DCE interface, and greater 
  33217. than or equal to the maximum length of the data packets which may cross 
  33218. the DTE/DCE 
  33219. interface plus the length of the address, control and FCS fields at the 
  33220. DTE/DCE interface. 
  33221. .PP
  33222. Appendix II provides a description of how the values stated above are  derived.
  33223. .RT
  33224. .sp 1P
  33225. .LP
  33226. 2.4.8.6
  33227.     \fIMaximum number of \fR \fIoutstanding I frames k\fR 
  33228. .sp 9p
  33229. .RT
  33230. .PP
  33231. The value of the DTE k system parameter shall be the same as the
  33232. value of the DCE k system parameter. This value shall be agreed to for a
  33233. period of time by both the DTE and the DCE.
  33234. .PP
  33235. The value of k shall indicate the maximum number of sequentially
  33236. numbered I\ frames that the DTE or DCE may have outstanding
  33237. (i.e.\ unacknowledged) at any given time. The value of k shall never exceed
  33238. seven for modulo\ 8 operation, or one hundred and twenty\(hyseven for modulo\ 
  33239. 128 
  33240. operation. All networks (DCEs) shall support a value of seven. Other values 
  33241. of k (less than and greater than seven) may also be supported by networks 
  33242. (DCEs).
  33243. .RT
  33244. .LP
  33245. .rs
  33246. .sp 39P
  33247. .sp 2P
  33248. .LP
  33249. \fBMONTAGE : \(sc 2.5 de cette Recommandation sur le reste de cette page\fR 
  33250. .sp 1P
  33251. .RT
  33252. .LP
  33253. .bp
  33254.